Skip to content

Commit c85ab89

Browse files
committed
fix: convert GitHub Pages workflow to CI-only
The workflow was failing because upload-pages-artifact expected a dist/ directory that doesn't exist — this project deploys to Vercel, not GitHub Pages. Remove Pages deployment steps and keep lint/test/build as CI quality gates. Also add PR trigger.
1 parent 1249fe3 commit c85ab89

1 file changed

Lines changed: 5 additions & 19 deletions

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,24 +1,18 @@
1-
name: Deploy to GitHub Pages
1+
name: CI
22

33
on:
44
push:
55
branches: [main]
6-
7-
permissions:
8-
contents: read
9-
pages: write
10-
id-token: write
6+
pull_request:
7+
branches: [main]
118

129
concurrency:
13-
group: pages
10+
group: ci-${{ github.ref }}
1411
cancel-in-progress: true
1512

1613
jobs:
17-
build-and-deploy:
14+
build:
1815
runs-on: ubuntu-latest
19-
environment:
20-
name: github-pages
21-
url: ${{ steps.deployment.outputs.page_url }}
2216
steps:
2317
- uses: actions/checkout@v5
2418

@@ -32,11 +26,3 @@ jobs:
3226
- run: npm run lint
3327
- run: npm test
3428
- run: npm run build
35-
36-
- uses: actions/configure-pages@v5
37-
- uses: actions/upload-pages-artifact@v4
38-
with:
39-
path: dist
40-
41-
- id: deployment
42-
uses: actions/deploy-pages@v5

0 commit comments

Comments
 (0)