setup wrangler and cloudflare pages
Some checks failed
Push to cloudflare pages / deploy (push) Failing after 3s
Some checks failed
Push to cloudflare pages / deploy (push) Failing after 3s
This commit is contained in:
parent
8aed0c2352
commit
6a599ea004
19 changed files with 5001 additions and 1160 deletions
30
.github/workflows/wrangler.yml
vendored
Normal file
30
.github/workflows/wrangler.yml
vendored
Normal file
|
@ -0,0 +1,30 @@
|
|||
name: Push to cloudflare pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- master
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- name: Checkout repository
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup pnpm
|
||||
uses: pnpm/action-setup@v4
|
||||
|
||||
- name: Install dependencies
|
||||
run: pnpm install
|
||||
|
||||
- name: Build
|
||||
run: pnpm build
|
||||
|
||||
- name: Setup wrangler
|
||||
uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
command: |
|
||||
pages deploy .svelte-kit/cloudflare --project-name=protogen-social-down-page
|
Loading…
Add table
Add a link
Reference in a new issue