Skip to content

rename: add YYYY-MM-DD prefix to all blog post filenames for sort #13

rename: add YYYY-MM-DD prefix to all blog post filenames for sort

rename: add YYYY-MM-DD prefix to all blog post filenames for sort #13

name: Deploy Web to Cloudflare Pages
on:
push:
branches: [main]
paths:
- 'apps/web/**'
- 'package.json'
- 'package-lock.json'
- '.github/workflows/deploy-cloudflare-pages.yml'
workflow_dispatch:
concurrency:
group: cloudflare-pages-${{ github.ref }}
cancel-in-progress: true
jobs:
deploy:
name: Build and deploy web
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
steps:
- uses: actions/checkout@v4
- uses: actions/setup-node@v4
with:
node-version: '22.12.0'
cache: 'npm'
- run: npm ci
- name: Build Astro site
run: npm run build:web
- name: Deploy to Cloudflare Pages
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy apps/web/dist --project-name runany --branch ${{ github.ref_name }}