Skip to content

Commit 182a77c

Browse files
authored
Merge pull request #6 from KBLLR/codex/create-github-actions-workflow-for-github-pages
Add GitHub Pages deploy workflow
2 parents 2f6d46e + 6f94eb3 commit 182a77c

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/deploy.yml

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

0 commit comments

Comments
 (0)