Skip to content

Commit 05feac9

Browse files
committed
ci: github pages
1 parent 9b569f7 commit 05feac9

File tree

1 file changed

+46
-0
lines changed

1 file changed

+46
-0
lines changed

.github/workflows/deploy.yml

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,46 @@
1+
name: Deployment
2+
3+
on:
4+
push:
5+
branches: [main]
6+
workflow_dispatch:
7+
8+
permissions:
9+
contents: read
10+
pages: write
11+
id-token: write
12+
13+
concurrency:
14+
group: pages
15+
cancel-in-progress: false
16+
17+
jobs:
18+
deploy:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: checkout
22+
uses: actions/checkout@v4
23+
- name: pnpm
24+
uses: pnpm/action-setup@v4
25+
with:
26+
version: 9
27+
- name: node
28+
uses: actions/setup-node@v4
29+
with:
30+
node-version: 22
31+
cache: pnpm
32+
- name: install
33+
run: pnpm -r i --frozen-lockfile
34+
- name: build
35+
run: pnpm build
36+
- name: configure
37+
uses: actions/configure-pages@v5
38+
- name: upload
39+
uses: actions/upload-pages-artifact@v3
40+
with:
41+
path: dist
42+
- name: deploy
43+
id: deployment
44+
uses: actions/deploy-pages@v4
45+
- name: 'logging'
46+
run: echo "Deployed at ${{ steps.deployment.outputs.page_url }}"

0 commit comments

Comments
 (0)