Skip to content

Commit

Permalink
ci: using release-please
Browse files Browse the repository at this point in the history
  • Loading branch information
lindell committed Dec 2, 2020
1 parent e65e1a8 commit ebf4692
Showing 1 changed file with 16 additions and 7 deletions.
23 changes: 16 additions & 7 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
@@ -1,23 +1,31 @@
on:
push:
tags:
- "*"

name: Release
branches:
- master

name: release
jobs:
goreleaser:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
- uses: GoogleCloudPlatform/release-please-action@v2.7.0
id: release
with:
token: ${{ secrets.GITHUB_TOKEN }}
release-type: simple
package-name: multi-gitter
changelog-types: '[{"type":"feat","section":"Features","hidden":false},{"type":"fix","section":"Bug Fixes","hidden":false},{"type":"chore","section":"Miscellaneous","hidden":false}]'

- uses: actions/checkout@v2
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}

- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: "^1.15.5"
if: ${{ steps.release.outputs.release_created }}

- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
Expand All @@ -26,3 +34,4 @@ jobs:
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
if: ${{ steps.release.outputs.release_created }}

0 comments on commit ebf4692

Please sign in to comment.