update: PDF url #26
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Github Pages Deploy | |
on: | |
push: | |
branches: | |
- master | |
- "V2-Phaser-Game" | |
- "PDF" | |
pull_request: | |
branches: | |
- master | |
- "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: 20 | |
- name: Install npm dependencies | |
run: npm ci | |
- name: Build # Output build files in `dist` folder | |
run: npm run build | |
# ------- 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 |