rename: add YYYY-MM-DD prefix to all blog post filenames for sort #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| 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 }} |