mirror of
https://github.com/exogen/t2-model-skinner.git
synced 2026-07-12 06:55:13 +00:00
deploy to cloudflare
This commit is contained in:
parent
a4feaf9986
commit
0ac723489c
13 changed files with 41 additions and 9 deletions
29
.github/workflows/deploy-cloudflare.yml
vendored
Normal file
29
.github/workflows/deploy-cloudflare.yml
vendored
Normal file
|
|
@ -0,0 +1,29 @@
|
|||
name: Deploy to Cloudflare Pages
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: ubuntu-latest
|
||||
permissions:
|
||||
contents: read
|
||||
deployments: write
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- uses: actions/setup-node@v4
|
||||
with:
|
||||
node-version: 22
|
||||
cache: npm
|
||||
|
||||
- run: npm ci
|
||||
|
||||
- run: npm run build
|
||||
|
||||
- uses: cloudflare/wrangler-action@v3
|
||||
with:
|
||||
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
||||
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
||||
command: pages deploy docs --project-name=t2-model-skinner
|
||||
Loading…
Add table
Add a link
Reference in a new issue