ci: add event workflow_dispatch to release pipelines (#1177)

This commit is contained in:
SteveLauC
2025-06-16 11:36:14 +08:00
committed by GitHub
parent 38e2d5663a
commit d1b7eba44e
5 changed files with 8 additions and 29 deletions

View File

@@ -3,6 +3,7 @@ name: Publish release files for CD native and non-cd-native environments
on:
release:
types: [ created ]
workflow_dispatch:
jobs:
# Publish release files for CD native environments
@@ -10,6 +11,9 @@ jobs:
strategy:
fail-fast: false
matrix:
# Use the Ubuntu 22.04 image to link with a low version of glibc
#
# https://github.com/topgrade-rs/topgrade/issues/1095
platform: [ ubuntu-22.04, macos-latest, macos-13, windows-latest ]
runs-on: ${{ matrix.platform }}
steps:

View File

@@ -7,6 +7,7 @@ on:
workflows: ["Publish release files for CD native and non-cd-native environments"]
types:
- completed
workflow_dispatch:
jobs:
aur-publish:

View File

@@ -1,29 +0,0 @@
on:
# workflow_run:
# workflows: ["Check SemVer compliance"]
# types:
# - completed
release:
types: [published]
name: Publish to crates.io on release
jobs:
prepare:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
override: true
publish:
runs-on: ubuntu-latest
steps:
- uses: katyo/publish-crates@v2
with:
dry-run: true
check-repo: ${{ github.event_name == 'push' }}
registry-token: ${{ secrets.CARGO_REGISTRY_TOKEN }}
ignore-unpublished-changes: true

View File

@@ -9,6 +9,7 @@ on:
push:
tags:
- "v*"
workflow_dispatch:
jobs:
homebrew-publish:

View File

@@ -2,6 +2,8 @@ name: Publish to WinGet
on:
release:
types: [released]
workflow_dispatch:
jobs:
publish:
runs-on: windows-latest