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:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [ created ]
|
types: [ created ]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
# Publish release files for CD native environments
|
# Publish release files for CD native environments
|
||||||
@@ -10,6 +11,9 @@ jobs:
|
|||||||
strategy:
|
strategy:
|
||||||
fail-fast: false
|
fail-fast: false
|
||||||
matrix:
|
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 ]
|
platform: [ ubuntu-22.04, macos-latest, macos-13, windows-latest ]
|
||||||
runs-on: ${{ matrix.platform }}
|
runs-on: ${{ matrix.platform }}
|
||||||
steps:
|
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"]
|
workflows: ["Publish release files for CD native and non-cd-native environments"]
|
||||||
types:
|
types:
|
||||||
- completed
|
- completed
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
aur-publish:
|
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:
|
push:
|
||||||
tags:
|
tags:
|
||||||
- "v*"
|
- "v*"
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
homebrew-publish:
|
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:
|
on:
|
||||||
release:
|
release:
|
||||||
types: [released]
|
types: [released]
|
||||||
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
publish:
|
publish:
|
||||||
runs-on: windows-latest
|
runs-on: windows-latest
|
||||||
|
|||||||
Reference in New Issue
Block a user