mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-27 11:23:25 +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
|
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: |
|
||||||
|
3
.github/workflows/publish_website.yml
vendored
3
.github/workflows/publish_website.yml
vendored
@ -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: |
|
||||||
|
1
.github/workflows/push_git_tag.yml
vendored
1
.github/workflows/push_git_tag.yml
vendored
@ -3,6 +3,7 @@
|
|||||||
name: Push release tag
|
name: Push release tag
|
||||||
|
|
||||||
on:
|
on:
|
||||||
|
workflow_dispatch:
|
||||||
push:
|
push:
|
||||||
branches:
|
branches:
|
||||||
- main
|
- main
|
||||||
|
Reference in New Issue
Block a user