mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 03:13:23 +00:00
Allow manually dispatching publishing workflows
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
1e24911198
commit
d22277a3e6
3
.github/workflows/publish_osdk_and_ostd.yml
vendored
3
.github/workflows/publish_osdk_and_ostd.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: Publish OSDK and OSTD
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- VERSION
|
||||
@ -27,7 +28,7 @@ jobs:
|
||||
./tools/github_workflows/publish_osdk_and_ostd.sh --dry-run
|
||||
|
||||
- name: Publish OSTD and OSDK
|
||||
if: github.event_name == 'push'
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
env:
|
||||
REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
|
||||
run: |
|
||||
|
3
.github/workflows/publish_website.yml
vendored
3
.github/workflows/publish_website.yml
vendored
@ -1,6 +1,7 @@
|
||||
name: Publish website
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
pull_request:
|
||||
paths:
|
||||
- docs/**
|
||||
@ -29,7 +30,7 @@ jobs:
|
||||
mdbook build
|
||||
|
||||
- name: Deploy website
|
||||
if: github.event_name == 'push' && github.ref == 'refs/heads/main'
|
||||
if: github.event_name == 'push' || github.event_name == 'workflow_dispatch'
|
||||
env:
|
||||
BOOK_PUBLISH_KEY: ${{ secrets.BOOK_PUBLISH_KEY }}
|
||||
run: |
|
||||
|
1
.github/workflows/push_git_tag.yml
vendored
1
.github/workflows/push_git_tag.yml
vendored
@ -3,6 +3,7 @@
|
||||
name: Push release tag
|
||||
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches:
|
||||
- main
|
||||
|
Reference in New Issue
Block a user