-
-
Notifications
You must be signed in to change notification settings - Fork 3
38 lines (31 loc) · 965 Bytes
/
deploy.yml
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
name: Deploy to GitHub Pages
on:
push:
branches: [main]
schedule:
- cron: '34 2 * * *' # run every day at 2:34 AM
jobs:
gh-pages-deploy:
name: Deploy to GitHub Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v1
- name: Use Node.js 20.x
uses: actions/setup-node@v1
with:
node-version: '20.17.0'
- run: npm install
env: { CI: true, TZ: America/Los_Angeles }
- run: npm run build
env: { CI: true, TZ: America/Los_Angeles }
- name: Configure Git
run: |
git config --global user.name "Hack Bot"
git config --global user.email "uclaacmhack+ghbot@gmail.com"
- name: Upload to gh-pages
env:
CI: true
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TZ: America/Los_Angeles
run: |
npm run deploy -- -r https://x-access-token:${{ secrets.GITHUB_TOKEN }}@github.com/uclaacm/hack.uclaacm.com.git