Skip to content

2.19.03 actions

2.19.03 actions #1

name: 'Gitbook-Branch'
on:
push:
branches:

Check failure on line 5 in .github/workflows/gitbook-branch.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/gitbook-branch.yml

Invalid workflow file

You have an error in your yaml syntax on line 5
- [0-9]+.[0-9]+.[0-9]+.doc #eg: 2.20.04.doc
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout action
uses: actions/checkout@v4
- name: Gitbook Action
uses: zanderzhao/gitbook-action@v1.2.4 # https://github.com/ZanderZhao/gitbook-action/releases
with: # Just example, click above, use latest please
token: ${{ secrets.PUBLISH_TOKEN }}
time_zone: Asia/Shanghai # set time zone
source_branch: ${{ github.ref_name }}
publish_push_force: true
publish_dir: /history/${{ github.ref_name }}/