Skip to content

Merge pull request #622 from piraces/dependabot/npm_and_yarn/markdown… #653

Merge pull request #622 from piraces/dependabot/npm_and_yarn/markdown…

Merge pull request #622 from piraces/dependabot/npm_and_yarn/markdown… #653

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
uses: cloudflare/[email protected]
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: '46c391370bbf0010bf0d5f4bbc237435'
projectName: 'blog'
directory: './_site'
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
- name: Upload deployment artifact
uses: actions/upload-artifact@v4
with:
name: deployment
path: ./_site