From 64a757c8f0d796bd205caafc1c9254df4c4f7143 Mon Sep 17 00:00:00 2001 From: Anton Baliasnikov Date: Mon, 16 Sep 2024 20:30:13 +0100 Subject: [PATCH] ci: add capability to publish prereleases --- .github/workflows/build-release.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/build-release.yaml b/.github/workflows/build-release.yaml index ad1a4a9ca..a26df8eed 100644 --- a/.github/workflows/build-release.yaml +++ b/.github/workflows/build-release.yaml @@ -2,6 +2,12 @@ name: Build and release on: workflow_dispatch: + inputs: + publish_release: + description: "Publish release?" + required: false + type: boolean + default: false pull_request: push: tags: @@ -106,7 +112,7 @@ jobs: release: runs-on: ubuntu-latest - if: startsWith(github.ref, 'refs/tags/') + if: ${{ startsWith(github.ref, 'refs/tags/') || inputs.publish_release }} needs: build steps: @@ -132,4 +138,5 @@ jobs: name: ZKsync solc ${{ github.ref_name }} body_path: release-changelog.txt tag_name: ${{ github.ref_name }} + prerelease: ${{ !startsWith(github.ref, 'refs/tags/') }} files: releases/**/**