Skip to content

chore(deps): get up-to-date with dependencies #710

chore(deps): get up-to-date with dependencies

chore(deps): get up-to-date with dependencies #710

Workflow file for this run

name: Publish to Cloudflare pages
on:
push:
branches: [ main ]
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
repository_dispatch:
types: [scheduled_post]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Read .nvmrc
id: node_version
run: echo ::set-output name=NODE_VERSION::$(cat .nvmrc)
- name: Setup node
uses: actions/setup-node@v4
with:
node-version: ${{ steps.node_version.outputs.NODE_VERSION }}
- run: npm install
- run: npm run build
- name: Cloudflare Pages GitHub Action (Wrangler)
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
command: pages deploy ./_site --project-name=blog
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload deployment artifact
uses: actions/upload-artifact@v4
with:
name: deployment
path: ./_site