ci: automate release post tag push (#6230)

This commit is contained in:
Marko
2020-05-25 20:02:08 +02:00
committed by GitHub
parent b8cac82992
commit 21a9cb9b28
8 changed files with 78 additions and 11 deletions
+3
View File
@@ -1,4 +1,7 @@
name: Lint
# Lint runs golangci-lint over the entire cosmos-sdk repository
# This workflow is run on every pull request and push to master
# The `golangci` will pass without running if no *.{go, mod, sum} files have been changed.
on:
pull_request:
push:
+5 -3
View File
@@ -1,8 +1,10 @@
name: Protobuf
on:
# Protobuf runs buf (https://buf.build/) lint and check-breakage
# This workflow is only run when a .proto file has been changed
on:
pull_request:
paths:
- '**.proto'
paths:
- "**.proto"
jobs:
lint:
runs-on: ubuntu-latest
+7 -5
View File
@@ -1,9 +1,11 @@
name: Release Sims
on:
pull_request:
branches:
- 'rc**'
# Release Sims workflow runs long-lived (multi-seed & large block size) simulations
# This workflow only runs on a pull request when the branch contains rc** (rc1/vX.X.x)
on:
pull_request:
branches:
- "rc**"
jobs:
cleanup-runs:
runs-on: ubuntu-latest
+2
View File
@@ -1,4 +1,6 @@
name: Sims
# Sims workflow runs multiple types of simulations (nondeterminism, import-export, after-import, multi-seed-short)
# This workflow will run on all Pull Requests, if a .go, .mod or .sum file have been changed
on:
pull_request:
jobs:
+26
View File
@@ -0,0 +1,26 @@
name: Release
# This workflow helps with creating releases.
# This job will only be triggered when a tag (vX.X.x) is pushed
on:
push:
# Sequence of patterns matched against refs/tags
tags:
- "v[0-9]+.[0-9]+.[0-9]+" # Push events to matching v*, i.e. v1.0, v20.15.10
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Install Go
uses: actions/setup-go@v1
with:
go-version: 1.14
- name: Unshallow
run: git fetch --prune --unshallow
- name: Create release
uses: goreleaser/goreleaser-action@v2
with:
args: release --rm-dist --release-notes ./RELEASE_CHANGELOG.md
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+3 -1
View File
@@ -1,4 +1,6 @@
name: Code Coverage
name: Uint-Tests / Code Coverage
# Uint-Tests / Code Coverage workflow runs unit tests and uploads a code coverage report
# This workflow is run on pushes to master & every Pull Requests where a .go, .mod, .sum have been changed
on:
pull_request:
push: