parent
780c6008fa
commit
105b1516ed
20
.gitea/workflows/deploy.yaml
Normal file
20
.gitea/workflows/deploy.yaml
Normal file
@ -0,0 +1,20 @@
|
||||
name: deploy
|
||||
on: [push]
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: ubuntu-latest
|
||||
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-node@v3
|
||||
with:
|
||||
node-version: "20.x"
|
||||
cache: "npm"
|
||||
- run: npm ci
|
||||
- run: npx quartz build
|
||||
- run: npx wrangler pages deploy public --project-name=$CF_PROJECT_NAME --branch=$GITHUB_REF_NAME
|
||||
env:
|
||||
CLOUDFLARE_API_TOKEN: ${{ vars.CLOUDFLARE_API_TOKEN }}
|
||||
CLOUDFLARE_ACCOUNT_ID: ${{ vars.CLOUDFLARE_ACCOUNT_ID }}
|
||||
CF_PROJECT_NAME: ${{ vars.CF_PROJECT_NAME }}
|
Loading…
Reference in New Issue
Block a user