Skip to content

Commit edd84ed

Browse files
author
Developer Experience team at Tendermint
committed
Initialized with Starport
0 parents  commit edd84ed

File tree

589 files changed

+255967
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

589 files changed

+255967
-0
lines changed

.github/workflows/release.yml

+51
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
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.
15+
on: push
16+
17+
jobs:
18+
might_release:
19+
runs-on: ubuntu-latest
20+
steps:
21+
- name: Checkout
22+
uses: actions/checkout@v2
23+
24+
- name: Prepare Release Variables
25+
id: vars
26+
uses: tendermint/starport/actions/release/vars@develop
27+
28+
- name: Issue Release Assets
29+
uses: tendermint/starport/actions/cli@develop
30+
if: ${{ steps.vars.outputs.should_release == 'true' }}
31+
with:
32+
args: chain build --release --release.prefix ${{ steps.vars.outputs.tarball_prefix }} -t linux:amd64 -t darwin:amd64
33+
34+
- name: Delete the "latest" Release
35+
uses: dev-drprasad/[email protected]
36+
if: ${{ steps.vars.outputs.is_release_type_latest == 'true' }}
37+
with:
38+
tag_name: ${{ steps.vars.outputs.tag_name }}
39+
delete_release: true
40+
env:
41+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
42+
43+
- name: Publish the Release
44+
uses: softprops/action-gh-release@v1
45+
if: ${{ steps.vars.outputs.should_release == 'true' }}
46+
with:
47+
tag_name: ${{ steps.vars.outputs.tag_name }}
48+
files: release/*
49+
prerelease: true
50+
env:
51+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.gitignore

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
vue/node_modules
2+
vue/dist
3+
release/

0 commit comments

Comments
 (0)