Publishing new Documentation build (via samlaycock) π #24
This file contains 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: 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 }} |