-
Notifications
You must be signed in to change notification settings - Fork 201
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore(release): update release workflow to create tag and GH release (#…
…447)
- Loading branch information
1 parent
f04da51
commit 42bbb51
Showing
1 changed file
with
14 additions
and
32 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,17 +1,6 @@ | ||
# This workflow is useful if you want to automate the process of: | ||
# | ||
# a) Creating a new prelease when you push a new tag with a "v" prefix (version). | ||
# | ||
# This type of prerelease is meant to be used for production: alpha, beta, rc, etc. types of releases. | ||
# After the prerelease is created, you need to make your changes on the release page at the relevant | ||
# Github page and publish your release. | ||
# | ||
# b) Creating/updating the "latest" prerelease when you push to your default branch. | ||
# | ||
# This type of prelease is useful to make your bleeding-edge binaries available to advanced users. | ||
# | ||
# The workflow will not run if there is no tag pushed with a "v" prefix and no change pushed to your | ||
# default branch. | ||
# This workflow is useful if you want to automate the process of creating a prerelease | ||
# when you push to your default branch (i.e. master). The workflow takes care of | ||
# automatically upgrading the tag version number. | ||
|
||
on: | ||
# Runs on PR merges or direct push to master | ||
|
@@ -26,32 +15,25 @@ jobs: | |
uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Prepare Release Variables | ||
id: vars | ||
uses: tendermint/starport/actions/release/vars@develop | ||
|
||
- name: Issue Release Assets | ||
uses: tendermint/starport/actions/cli@develop | ||
if: ${{ steps.vars.outputs.should_release == 'true' }} | ||
- name: Bump version and push tag | ||
id: tag_version | ||
uses: mathieudutour/[email protected] | ||
with: | ||
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64 | ||
github_token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: Delete the "latest" Release | ||
uses: dev-drprasad/[email protected] | ||
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }} | ||
- name: Build Binary | ||
uses: ignite-hq/cli/actions/cli@develop | ||
with: | ||
tag_name: ${{ steps.vars.outputs.tag_name }} | ||
delete_release: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
args: chain build --release --release.prefix nibiru -t linux:amd64 -t darwin:amd64 | ||
|
||
- name: Publish the Release | ||
- name: Create the Prerelease | ||
uses: softprops/action-gh-release@v1 | ||
if: ${{ steps.vars.outputs.should_release == 'true' }} | ||
with: | ||
tag_name: ${{ steps.vars.outputs.tag_name }} | ||
tag_name: ${{ steps.tag_version.outputs.new_tag }} | ||
files: release/* | ||
prerelease: true | ||
name: Release ${{ steps.tag_version.outputs.new_tag }} | ||
body: ${{ steps.tag_version.outputs.changelog }} | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |