Skip to content

Publishing new Documentation build (via samlaycock) πŸ“– #24

Publishing new Documentation build (via samlaycock) πŸ“–

Publishing new Documentation build (via samlaycock) πŸ“– #24

Workflow file for this run

name: Docs
run-name: Publishing new Documentation build (via ${{ github.actor }}) πŸ“–
on:
push:
branches:
- main
paths:
- www/docs/**
workflow_dispatch:
concurrency: ${{ github.workflow }}-${{ github.ref }}
jobs:
publish:
runs-on: ubuntu-latest
steps:
- run: echo "The job was automatically triggered by a ${{ github.event_name }} event."
- run: echo "This job was triggered by ${{ github.actor }} on ${{ github.ref }}."
- name: Check out repository code
uses: actions/checkout@v2
- name: Setup PNPM
uses: pnpm/action-setup@v2
with:
version: 8
- name: Setup Node.js 18.x
uses: actions/setup-node@v2
with:
node-version: 18.x
cache: pnpm
- name: Install dependencies
run: pnpm i --frozen-lockfile
- name: Publish Docs
uses: cloudflare/wrangler-action@v3
with:
packageManager: pnpm
workingDirectory: "www/docs"
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}