Allow manually dispatching publishing workflows

This commit is contained in:
Zhang Junyang
2024-08-24 17:27:15 +08:00
committed by Tate, Hongliang Tian
parent 1e24911198
commit d22277a3e6
3 changed files with 5 additions and 2 deletions

View File

@ -1,6 +1,7 @@
name: Publish OSDK and OSTD name: Publish OSDK and OSTD
on: on:
workflow_dispatch:
pull_request: pull_request:
paths: paths:
- VERSION - VERSION
@ -27,7 +28,7 @@ jobs:
./tools/github_workflows/publish_osdk_and_ostd.sh --dry-run ./tools/github_workflows/publish_osdk_and_ostd.sh --dry-run
- name: Publish OSTD and OSDK - name: Publish OSTD and OSDK
if: github.event_name == 'push' if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env: env:
REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: | run: |

View File

@ -1,6 +1,7 @@
name: Publish website name: Publish website
on: on:
workflow_dispatch:
pull_request: pull_request:
paths: paths:
- docs/** - docs/**
@ -29,7 +30,7 @@ jobs:
mdbook build mdbook build
- name: Deploy website - name: Deploy website
if: github.event_name == 'push' && github.ref == 'refs/heads/main' if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
env: env:
BOOK_PUBLISH_KEY: ${{ secrets.BOOK_PUBLISH_KEY }} BOOK_PUBLISH_KEY: ${{ secrets.BOOK_PUBLISH_KEY }}
run: | run: |

View File

@ -3,6 +3,7 @@
name: Push release tag name: Push release tag
on: on:
workflow_dispatch:
push: push:
branches: branches:
- main - main