-
-
Notifications
You must be signed in to change notification settings - Fork 187
39 lines (38 loc) · 1.04 KB
/
deploy-ghpages.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
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 package.json 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