-
Notifications
You must be signed in to change notification settings - Fork 1
65 lines (55 loc) · 1.55 KB
/
GithubPagesDeploy.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
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
# Tutorial: https://tigeroakes.com/posts/til-github-pages-two-branches-github-actions/
name: Github Pages Deploy
on:
push:
branches:
- master
- "V1-FE-Vanilla-Site"
- "V2-Phaser-Game"
- "PDF"
pull_request:
branches:
- master
- "V1-FE-Vanilla-Site"
- "V2-Phaser-Game"
- "PDF"
jobs:
build:
runs-on: ubuntu-latest
steps:
# ------- V2-Phaser-Game --------
- name: Checkout the `V2-Phaser-Game` branch
uses: actions/checkout@v2
with:
ref: V2-Phaser-Game
clean: false
- name: Install Node.js
uses: actions/setup-node@v2-beta
with:
node-version: 17
- name: Install npm dependencies
run: npm ci
- name: Build # Output build files in `dist` folder
run: npm run build
# ------- V1-FE-Vanilla-Site --------
- name: Checkout the `V1-FE-Vanilla-Site` branch
uses: actions/checkout@v2
with:
ref: V1-FE-Vanilla-Site
# Put the checked out files inside the `dist/V1` folder
path: dist/V1
clean: false
# ------- PDF --------
- name: Checkout the `PDF` branch
uses: actions/checkout@v2
with:
ref: PDF
# Put the checked out files inside the `dist/PDF` folder
path: dist/PDF
clean: false
# ------- gh-pages (deploy) --------
- name: Deploy in gh-pages
uses: JamesIves/github-pages-deploy-action@4.1.1
with:
branch: gh-pages
folder: dist