-
Notifications
You must be signed in to change notification settings - Fork 220
49 lines (47 loc) · 1.14 KB
/
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
39
40
41
42
43
44
45
46
47
48
49
name: Website Deploy
on:
pull_request:
push:
branches:
- main
jobs:
build_and_deploy_job:
runs-on: ubuntu-latest
name: Build and Deploy Job
steps:
-
name: Checkout Code
uses: actions/checkout@v2
with:
submodules: recursive
-
name: Setup Node
uses: actions/[email protected]
with:
node-version: "18"
-
name: Setup Dependencies
run: yarn install
-
name: Setup Python
uses: actions/setup-python@v2
with:
python-version: 3.8
-
name: Generate PDF
run: |
bash .github/scripts/generate-pdf.sh
cp -r pdf/ static/
-
name: Build Site
run: yarn build
-
name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
user_name: 'github-actions[bot]'
user_email: 'github-actions[bot]@users.noreply.github.com'
publish_branch: asf-site
publish_dir: ./build