-
Notifications
You must be signed in to change notification settings - Fork 1
28 lines (26 loc) · 876 Bytes
/
deploy.yml
File metadata and controls
28 lines (26 loc) · 876 Bytes
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
name: Deploy
on:
push:
workflow_dispatch:
jobs:
deploy:
name: Build and Deploy
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-node@v3
with:
node-version: "16"
check-latest: true
registry-url: https://registry.npmjs.org/
- name: Install dependencies
run: npm ci
- name: Build
run: npm run build
- name: Move public dir
run: cp -r src/public/* dist
- name: Deploy with gh-pages
run: |
git config --global user.name github-actions
git remote set-url origin https://x-access-token:${{ secrets.TOKEN }}@github.com/${{ github.repository }}
npx gh-pages -d dist