Skip to content

Commit d045ed7

Browse files
feature: try gh page
1 parent cffee73 commit d045ed7

File tree

1 file changed

+13
-15
lines changed

1 file changed

+13
-15
lines changed

.github/workflows/ci.yml

Lines changed: 13 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ concurrency:
88
group: ${{ github.workflow }}-${{ github.ref }}
99
cancel-in-progress: true
1010

11+
permissions:
12+
contents: read
13+
pages: write
14+
id-token: write
15+
1116
on:
1217
push:
1318
branches: ["main"]
@@ -50,20 +55,20 @@ jobs:
5055
deploy:
5156
runs-on: ubuntu-24.04
5257
timeout-minutes: 3
53-
# if: startsWith(github.ref, 'refs/tags/')
54-
# needs: [test]
58+
# if: startsWith(github.ref, 'refs/tags/')
59+
# needs: [test]
60+
environment:
61+
name: github-pages
62+
url: ${{ steps.deployment.outputs.page_url }}
5563
steps:
5664
- name: Checkout
57-
- uses: actions/checkout@v4
58-
65+
uses: actions/checkout@v4
5966
- name: Setup Pages
6067
uses: actions/configure-pages@v5
61-
6268
- name: Upload artifact
6369
uses: actions/upload-pages-artifact@v3
6470
with:
65-
path: src
66-
71+
path: ./src
6772
- name: Deploy to GitHub Pages
6873
uses: actions/deploy-pages@v4
6974

@@ -85,11 +90,4 @@ jobs:
8590
- name: Release
8691
env:
8792
NODE_AUTH_TOKEN: ${{secrets.NPM_TOKEN}}
88-
run: |
89-
npm publish
90-
91-
- name: Showcase
92-
uses: actions/deploy-pages@v4
93-
with:
94-
token: ${{ secrets.GITHUB_TOKEN }}
95-
publish_dir: ./src
93+
run: npm publish

0 commit comments

Comments
 (0)