-
Notifications
You must be signed in to change notification settings - Fork 0
40 lines (34 loc) · 877 Bytes
/
main.yml
File metadata and controls
40 lines (34 loc) · 877 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
name: CI
#on:
#push:
#branches:
#- main
#schedule:
#- cron: "0 22 * * *"
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
node-version: "16.x"
- name: Before script
run: |
npm i
sudo apt update
sudo apt install -y php xmlstarlet bash
- name: Build
env:
MEETUP_COOKIES: ${{ secrets.MEETUP_COOKIES }}
run: |
# Get data from MeetUp and render index.html
./build.sh
- name: Upload
run: |
git config --local user.email "action@github.com"
git config --local user.name "GitHub Action"
git add -f docs
if [[ $(git status --porcelain) ]]; then
git commit -m "$(date +"%F")"
git push -f origin main
fi