-
Notifications
You must be signed in to change notification settings - Fork 16
32 lines (29 loc) · 963 Bytes
/
deploy.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
name: Deploy to GitHub Pages
on:
push:
branches: [v2.0, master]
pull_request:
branches: [v2.0, master]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout repository
uses: actions/checkout@v3
- name: Setup Node.js environment
uses: actions/setup-node@v3
with:
node-version: "18" # specify the Node.js version you want
- name: Build site # If your site requires a build step, include it here
run: |
cd frontend
npm install
npm run build
env:
CI: true
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./frontend/build
publish_branch: pages