Skip to content

Commit 3992086

Browse files
committed
ci: replace deploy workflow with pull request and push quality gate
Delegate deployment to Cloudflare Workers Builds Git integration and reduce GitHub Actions workflow to check and build verification.
1 parent 27138bd commit 3992086

1 file changed

Lines changed: 11 additions & 14 deletions

File tree

Lines changed: 11 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,24 @@
1-
name: Deploy Cloudflare Worker
1+
name: CI
22

33
on:
44
push:
55
branches:
66
- main
7+
pull_request:
8+
branches:
9+
- main
710
workflow_dispatch:
811

912
permissions:
1013
contents: read
1114

1215
concurrency:
13-
group: workers-production-${{ github.ref }}
16+
group: ci-${{ github.ref }}
1417
cancel-in-progress: true
1518

1619
jobs:
17-
deploy:
18-
name: Build and deploy
20+
check:
21+
name: Check and build
1922
runs-on: ubuntu-latest
2023
steps:
2124
- name: Checkout
@@ -35,14 +38,8 @@ jobs:
3538
- name: Install dependencies
3639
run: pnpm install --frozen-lockfile
3740

38-
- name: Build static site
39-
run: pnpm build
41+
- name: Svelte check
42+
run: pnpm check
4043

41-
- name: Deploy to Cloudflare Workers
42-
uses: cloudflare/wrangler-action@v4
43-
with:
44-
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
45-
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
46-
wranglerVersion: "4"
47-
packageManager: pnpm
48-
command: deploy
44+
- name: Build site and verify installer
45+
run: pnpm build

0 commit comments

Comments
 (0)