Skip to content
This repository was archived by the owner on Jun 14, 2023. It is now read-only.

Commit 1053126

Browse files
committed
Github actions: make release action manual
1 parent 902ee5d commit 1053126

File tree

2 files changed

+7
-3
lines changed

2 files changed

+7
-3
lines changed

.github/workflows/main.yaml

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ env:
44
RUST_BACKTRACE: 1
55

66
on:
7+
workflow_dispatch:
8+
inputs:
9+
release:
10+
description: 'Make release'
711
push:
812
branches:
913
- 'master'
@@ -161,7 +165,7 @@ jobs:
161165
# restore-keys: |
162166
# ${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
163167
- name: Release to crates.io
164-
if: needs.setup.outputs.DOING_RELEASE == '1' && matrix.os == 'ubuntu-latest'
168+
if: (needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != '') && matrix.os == 'ubuntu-latest'
165169
run: |
166170
cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
167171
@@ -224,7 +228,7 @@ jobs:
224228
release:
225229
needs: [setup, test] #, regression_tests]
226230
runs-on: ubuntu-latest
227-
if: needs.setup.outputs.DOING_RELEASE == '1'
231+
if: needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != ''
228232
steps:
229233
- name: Download the Artifacts
230234
uses: actions/download-artifact@v2

Cargo.lock

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)