-
-
Notifications
You must be signed in to change notification settings - Fork 0
26 lines (26 loc) · 636 Bytes
/
Copy pathdeploy.yml
File metadata and controls
26 lines (26 loc) · 636 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
name: Deploy to GitHub Pages (Official)
permissions:
contents: read
pages: write
id-token: write
on:
workflow_dispatch: {}
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
fetch-depth: 0
- uses: actions/setup-node@v4
with:
node-version: '18'
- run: npm ci
- run: npm run build
- name: Upload artifact for GitHub Pages
uses: actions/upload-pages-artifact@v1
with:
path: ./dist
- name: Deploy to GitHub Pages
uses: actions/deploy-pages@v1