* ci: update GitHub Actions to Node 24 * ci: skip privileged previews for forks * ci: isolate preview deployment secrets
30 lines
615 B
YAML
30 lines
615 B
YAML
name: Deploy app
|
|
|
|
on:
|
|
push:
|
|
tags:
|
|
- "v*"
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
deploy:
|
|
runs-on: ubuntu-latest
|
|
permissions:
|
|
contents: read
|
|
deployments: write
|
|
steps:
|
|
- uses: actions/checkout@v7
|
|
|
|
- uses: ./.github/actions/setup-bun
|
|
|
|
- name: Format check
|
|
run: bun run format:check
|
|
|
|
- run: bun run build
|
|
|
|
- uses: cloudflare/wrangler-action@v4
|
|
with:
|
|
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
|
|
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
|
|
command: pages deploy dist --project-name=openpencil-app --branch=master
|