Quack Event #899
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: Deploy to GitHub pages branch | |
on: | |
push: | |
branches: master | |
jobs: | |
build-and-deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
- name: Use Node.js | |
uses: actions/setup-node@v3 | |
with: | |
node-version: lts/* | |
- name: Install deps | |
run: | | |
npm install | |
- name: Lint | |
run: | | |
npm run lint | |
npm run csslint | |
- name: Build | |
run: | | |
node ./scripts/update-last-updated.js | |
npm run-script build:esbuild | |
- name: Prepare for deploy | |
run: | | |
rm -rf targetdir | |
mkdir -p targetdir | |
mv dist Pictures translations index.html Synergism.css favicon.ico targetdir/ | |
- name: Deploy with the $GME emoji for some reason 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: targetdir |