Skip to content

Commit 60ce973

Browse files
committed
ci: update action
1 parent 557e125 commit 60ce973

File tree

1 file changed

+5
-10
lines changed

1 file changed

+5
-10
lines changed

.github/workflows/pages.yml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -15,24 +15,19 @@ concurrency:
1515
cancel-in-progress: true
1616

1717
jobs:
18-
build:
18+
deploy:
1919
runs-on: ubuntu-latest
20+
environment:
21+
name: github-pages
22+
url: ${{ steps.deployment.outputs.page_url }}
2023
steps:
2124
- uses: actions/checkout@v6
2225
- run: npm i -fg corepack && corepack enable
2326
- uses: actions/setup-node@v6
2427
with: { node-version: lts/*, cache: "pnpm" }
2528
- run: pnpm install
26-
- run: pnpm exec vite build
29+
- run: pnpm vite build
2730
- uses: actions/upload-pages-artifact@v3
2831
with: { path: dist-pages }
29-
30-
deploy:
31-
needs: build
32-
runs-on: ubuntu-latest
33-
environment:
34-
name: github-pages
35-
url: ${{ steps.deployment.outputs.page_url }}
36-
steps:
3732
- id: deployment
3833
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)