Skip to content

meta(github): fix workflow file #3

meta(github): fix workflow file

meta(github): fix workflow file #3

Workflow file for this run

name: Deploy Pages

Check failure on line 1 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

`workflow-dispatch` is not a valid event name
on:
push:
paths:
- 'chapter*/**'
- 'preface/**'
- 'SUMMARY.md'
- 'README.md'
workflow-dispatch:
jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Legacy Node.js
uses: actions/setup-node@v4
with:
node-version: 10
- name: Build GitBook
shell: bash
run: |
gitbook install .
gitbook build .
- name: Setup Modern Node.js
uses: actions/setup-node@v4
with:
node-version: current
- name: Get Wrangler
shell: bash
run: npm install wrangler --save-dev
- name: Publish
shell: bash
env:
CLOUDFLARE_API_TOKEN: ${{ secrets.CF_TOKEN }}
run: npx wrangler pages deploy _book/ --project-name tcd-harbinger