Skip to content

Commit b34d6d8

Browse files
committed
build: gh pages deploy test
1 parent a50eefc commit b34d6d8

1 file changed

Lines changed: 26 additions & 0 deletions

File tree

.github/workflows/static.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,13 @@ on:
44
push:
55
branches:
66
- 'deploy'
7+
permissions:
8+
contents: read
9+
pages: write
10+
id-token: write
11+
concurrency:
12+
group: "pages"
13+
cancel-in-progress: false
714
jobs:
815
build:
916
runs-on: ubuntu-latest
@@ -25,3 +32,22 @@ jobs:
2532
with:
2633
name: production-build
2734
path: dist
35+
deploy:
36+
environment: github-pages
37+
url: ${{ steps.deployment.outputs.page_url }}
38+
runs-on: ubuntu-latest
39+
needs: build
40+
steps:
41+
- name: Download artifact
42+
uses: actions/download-artifact@v4
43+
with:
44+
name: production-build
45+
- name: Setup Pages
46+
uses: actions/configure-pages@v5
47+
- name: Upload artifact
48+
uses: actions/upload-pages-artifact@v3
49+
with:
50+
path: '.'
51+
- name: Deploy to GH Pages
52+
id: deployment
53+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)