Skip to content

Commit 5e13e9a

Browse files
committed
Create deploy.yml
1 parent f2996cf commit 5e13e9a

1 file changed

Lines changed: 28 additions & 0 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Deploy to GitHub Pages
2+
on:
3+
push: { branches: [ main ] }
4+
workflow_dispatch:
5+
permissions:
6+
contents: read
7+
pages: write
8+
id-token: write
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v4
14+
- uses: actions/setup-node@v4
15+
with: { node-version: 20, cache: npm }
16+
- run: npm ci
17+
- run: npm run build
18+
- uses: actions/upload-pages-artifact@v3
19+
with: { path: dist }
20+
deploy:
21+
needs: build
22+
runs-on: ubuntu-latest
23+
environment:
24+
name: github-pages
25+
url: ${{ steps.deployment.outputs.page_url }}
26+
steps:
27+
- id: deployment
28+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)