Skip to content

Commit 3dbe9a6

Browse files
committed
Create workflow for GH Pages
1 parent 08d925c commit 3dbe9a6

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
+23
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# This workflow deploys the repository to GitHub Pages when master branch is updated.
2+
3+
name: Deploy to GitHub Pages
4+
on:
5+
push:
6+
branches: [master]
7+
permissions:
8+
pages: write
9+
id-token: write
10+
jobs:
11+
deploy:
12+
runs-on: ubuntu-latest
13+
steps:
14+
- uses: actions/checkout@v3
15+
- uses: actions/setup-node@v3
16+
with:
17+
node-version: 18
18+
- run: npm install
19+
- run: npm run build
20+
- uses: actions/upload-pages-artifact@v1
21+
with:
22+
path: dist
23+
- uses: actions/deploy-pages@v2

0 commit comments

Comments
 (0)