-
Notifications
You must be signed in to change notification settings - Fork 4
42 lines (34 loc) · 785 Bytes
/
deploy.yml
File metadata and controls
42 lines (34 loc) · 785 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
name: deploy to GitHub Pages
on:
push:
branches: [ main ]
workflow_dispatch:
permissions:
contents: write
pages: write
id-token: write
concurrency:
group: "pages"
cancel-in-progress: true
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- name: checkout
uses: actions/checkout@v3
- name: setup-node
uses: actions/setup-node@v3
with:
node-version: '18'
cache: 'npm'
- name: install-dependencies
run: npm ci
- name: build-project
run: npm run build
- name: deploy-to-github-pages
uses: JamesIves/github-pages-deploy-action@v4
with:
folder: dist
branch: gh-pages
clean: true
token: ${{ secrets.PAT }}