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

Commit

Permalink
Github actions: make release action manual
Browse files Browse the repository at this point in the history
  • Loading branch information
epilys committed Jul 20, 2022
1 parent 902ee5d commit 1053126
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
8 changes: 6 additions & 2 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ env:
RUST_BACKTRACE: 1

on:
workflow_dispatch:
inputs:
release:
description: 'Make release'
push:
branches:
- 'master'
Expand Down Expand Up @@ -161,7 +165,7 @@ jobs:
# restore-keys: |
# ${{ matrix.os }}-${{ matrix.rust }}-${{ hashFiles('Cargo.lock') }}
- name: Release to crates.io
if: needs.setup.outputs.DOING_RELEASE == '1' && matrix.os == 'ubuntu-latest'
if: (needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != '') && matrix.os == 'ubuntu-latest'
run: |
cargo publish --token ${{ secrets.CRATES_IO_TOKEN }}
Expand Down Expand Up @@ -224,7 +228,7 @@ jobs:
release:
needs: [setup, test] #, regression_tests]
runs-on: ubuntu-latest
if: needs.setup.outputs.DOING_RELEASE == '1'
if: needs.setup.outputs.DOING_RELEASE == '1' || github.event.inputs.release != ''
steps:
- name: Download the Artifacts
uses: actions/download-artifact@v2
Expand Down
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 1053126

Please sign in to comment.