[workflow] changed to doc build to be on schedule and release (#3825)

* [workflow] changed to doc build to be on schedule and release

* polish code
pull/3826/head
Frank Lee 2023-05-24 10:50:19 +08:00 committed by GitHub
parent 269150b6f4
commit 05b8a8de58
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 8 deletions

View File

@ -1,18 +1,16 @@
name: Build Documentation After Merge name: Build Documentation On Schedule & After Release
on: on:
workflow_dispatch: workflow_dispatch:
push: schedule:
paths: - cron: "0 12 * * *" # build doc every day at 8pm Singapore time (12pm UTC time)
- "version.txt" release:
- "docs/**" types: [published]
branches:
- "main"
jobs: jobs:
build-doc: build-doc:
name: Trigger Documentation Build Workflow name: Trigger Documentation Build Workflow
if: ( github.event_name == 'workflow_dispatch' || github.event.pull_request.merged == true ) && github.repository == 'hpcaitech/ColossalAI' if: github.repository == 'hpcaitech/ColossalAI'
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: trigger workflow in ColossalAI-Documentation - name: trigger workflow in ColossalAI-Documentation