ci: add event workflow_dispatch to release pipelines (#1177)
This commit is contained in:
4
.github/workflows/create_release_assets.yml
vendored
4
.github/workflows/create_release_assets.yml
vendored
@@ -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:
|
||||
|
||||
1
.github/workflows/release_to_aur.yml
vendored
1
.github/workflows/release_to_aur.yml
vendored
@@ -7,6 +7,7 @@ on:
|
||||
workflows: ["Publish release files for CD native and non-cd-native environments"]
|
||||
types:
|
||||
- completed
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
aur-publish:
|
||||
|
||||
29
.github/workflows/release_to_crates_io.yml
vendored
29
.github/workflows/release_to_crates_io.yml
vendored
@@ -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
|
||||
1
.github/workflows/release_to_homebrew.yml
vendored
1
.github/workflows/release_to_homebrew.yml
vendored
@@ -9,6 +9,7 @@ on:
|
||||
push:
|
||||
tags:
|
||||
- "v*"
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
homebrew-publish:
|
||||
|
||||
2
.github/workflows/release_to_winget.yml
vendored
2
.github/workflows/release_to_winget.yml
vendored
@@ -2,6 +2,8 @@ name: Publish to WinGet
|
||||
on:
|
||||
release:
|
||||
types: [released]
|
||||
workflow_dispatch:
|
||||
|
||||
jobs:
|
||||
publish:
|
||||
runs-on: windows-latest
|
||||
|
||||
Reference in New Issue
Block a user