ci: create cloudflare deployment pipeline
Some checks failed
Deploy to Cloudflare Pages / publish (push) Failing after 1m17s
Some checks failed
Deploy to Cloudflare Pages / publish (push) Failing after 1m17s
This commit is contained in:
parent
fae28133d8
commit
256a66febe
1 changed files with 29 additions and 0 deletions
29
.forgejo/workflows/deploy.yml
Normal file
29
.forgejo/workflows/deploy.yml
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Deploy to Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout Code
|
||||
uses: actions/checkout@v4
|
||||
|
||||
- name: Setup Node.js
|
||||
uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: '20'
|
||||
|
||||
- name: Install & Build
|
||||
run: |
|
||||
npm install
|
||||
make build
|
||||
|
||||
- name: Push to Cloudflare Edge
|
||||
run: npx wrangler pages deploy dist/ --project-name=ledailysquirrel
|
||||
env:
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ secrets.CF_ACCOUNT_ID }}
|
||||
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_API_TOKEN }}
|
||||
Loading…
Reference in a new issue