Skip to content

Commit

Permalink
ci: add capability to publish prereleases
Browse files Browse the repository at this point in the history
  • Loading branch information
antonbaliasnikov committed Sep 16, 2024
1 parent fc33f0d commit 64a757c
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/build-release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand Down Expand Up @@ -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:

Expand All @@ -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/**/**

0 comments on commit 64a757c

Please sign in to comment.