1- # This workflow is useful if you want to automate the process of:
2- #
3- # a) Creating a new prelease when you push a new tag with a "v" prefix (version).
4- #
5- # This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases.
6- # After the prerelease is created, you need to make your changes on the release page at the relevant
7- # Github page and publish your release.
8- #
9- # b) Creating/updating the "latest" prerelease when you push to your default branch.
10- #
11- # This type of prelease is useful to make your bleeding-edge binaries available to advanced users.
12- #
13- # The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your
14- # default branch.
1+ # This workflow is useful if you want to automate the process of creating a prerelease
2+ # when you push to your default branch (i.e. master). The workflow takes care of
3+ # automatically upgrading the tag version number.
154
165on :
176# Runs on PR merges or direct push to master
@@ -26,32 +15,25 @@ jobs:
2615 uses : actions/checkout@v2
2716 with :
2817 fetch-depth : 0
29-
30- - name : Prepare Release Variables
31- id : vars
32- uses : tendermint/starport/actions/release/vars@develop
3318
34- - name : Issue Release Assets
35- uses : tendermint/starport/actions/cli@develop
36- if : ${{ steps.vars.outputs.should_release == 'true' }}
19+ - name : Bump version and push tag
20+ id : tag_version
21+ uses : mathieudutour/[email protected] 3722 with :
38- args : chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64
23+ github_token : ${{ secrets.GITHUB_TOKEN }}
3924
40- - name : Delete the "latest" Release
41- uses :
dev-drprasad/[email protected] 42- if : ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
25+ - name : Build Binary
26+ uses : ignite-hq/cli/actions/cli@develop
4327 with :
44- tag_name : ${{ steps.vars.outputs.tag_name }}
45- delete_release : true
46- env :
47- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
28+ args : chain build --release --release.prefix nibiru -t linux:amd64 -t darwin:amd64
4829
49- - name : Publish the Release
30+ - name : Create the Prerelease
5031 uses : softprops/action-gh-release@v1
51- if : ${{ steps.vars.outputs.should_release == 'true' }}
5232 with :
53- tag_name : ${{ steps.vars .outputs.tag_name }}
33+ tag_name : ${{ steps.tag_version .outputs.new_tag }}
5434 files : release/*
5535 prerelease : true
36+ name : Release ${{ steps.tag_version.outputs.new_tag }}
37+ body : ${{ steps.tag_version.outputs.changelog }}
5638 env :
5739 GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
0 commit comments