Skip to content

Commit 2429e2b

Browse files
committed
chore(ci): deploy pages
1 parent e013ab2 commit 2429e2b

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

.github/workflows/ci.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,11 @@ name: CI
33

44
on: [push]
55

6+
concurrency:
7+
group: "pages"
8+
cancel-in-progress: false
9+
10+
611
jobs:
712
lint:
813
runs-on: ubuntu-latest
@@ -46,3 +51,29 @@ jobs:
4651
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4752
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}
4853
run: npx semantic-release
54+
55+
build:
56+
runs-on: ubuntu-latest
57+
steps:
58+
- uses: actions/checkout@v6
59+
- uses: actions/setup-node@v6
60+
with:
61+
node-version: 22
62+
- run: npm i
63+
- run: npm run build
64+
- uses: actions/upload-pages-artifact@v3
65+
with:
66+
path: ./
67+
68+
deploy:
69+
runs-on: ubuntu-latest
70+
needs: build
71+
permissions:
72+
pages: write # to deploy to Pages
73+
id-token: write # to verify the deployment originates from an appropriate source
74+
environment:
75+
name: github-pages
76+
url: ${{ steps.deployment.outputs.page_url }}
77+
steps:
78+
- id: deployment
79+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)