Skip to content

build(deps): bump the production-dependencies group across 1 directory with 18 updates #171

build(deps): bump the production-dependencies group across 1 directory with 18 updates

build(deps): bump the production-dependencies group across 1 directory with 18 updates #171

Workflow file for this run

name: Build
on:
push:
branches: ['main']
pull_request:
branches: ['main']
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Use Node.js
uses: actions/setup-node@v4
with:
node-version: 20.x
cache: 'npm'
- run: npm ci
- run: npm run build
- name: Upload build artifact
uses: actions/upload-artifact@v4
with:
name: build
path: dist
release:
runs-on: ubuntu-latest
needs: build
permissions:
contents: read
deployments: write
steps:
- name: Download build artifact
uses: actions/download-artifact@v4
with:
name: build
path: dist
- name: Publish to Cloudflare Pages
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CF_PAGES_API_TOKEN }}
accountId: ${{ secrets.CF_PAGES_ACCOUNT_ID }}
projectName: blog
directory: dist
branch: ${{ github.head_ref || github.ref_name }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
wranglerVersion: '3'
- name: Purge Cloudflare cache
if: ${{ github.ref == 'refs/heads/main' && github.event_name != 'pull_request' }}
uses: nathanvaughn/actions-cloudflare-purge@master
env:
CLOUDFLARE_ZONE: ${{ secrets.CF_CACHE_PURGE_ZONE }}
CLOUDFLARE_AUTH_KEY: ${{ secrets.CF_CACHE_PURGE_TOKEN }}