From 10531266435e87508cf6f7e6880331b46f633a0e Mon Sep 17 00:00:00 2001 From: Manos Pitsidianakis Date: Wed, 20 Jul 2022 11:56:04 +0300 Subject: [PATCH] Github actions: make release action manual --- .github/workflows/main.yaml | 8 ++++++-- Cargo.lock | 2 +- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/.github/workflows/main.yaml b/.github/workflows/main.yaml index 6b5bf245..7cb6dc6f 100644 --- a/.github/workflows/main.yaml +++ b/.github/workflows/main.yaml @@ -4,6 +4,10 @@ env: RUST_BACKTRACE: 1 on: + workflow_dispatch: + inputs: + release: + description: 'Make release' push: branches: - 'master' @@ -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 }} @@ -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 diff --git a/Cargo.lock b/Cargo.lock index 8beb0928..59b139df 100644 --- a/Cargo.lock +++ b/Cargo.lock @@ -2684,7 +2684,7 @@ dependencies = [ [[package]] name = "wapm-cli" -version = "0.5.4" +version = "0.5.5" dependencies = [ "anyhow", "atty",