Skip to content

Commit

Permalink
feat: add semantic release config
Browse files Browse the repository at this point in the history
  • Loading branch information
Gustavo Marin committed Mar 7, 2020
1 parent bf663a8 commit 44623dd
Show file tree
Hide file tree
Showing 3 changed files with 42 additions and 1 deletion.
6 changes: 5 additions & 1 deletion .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@ jobs:
- name: Set up Go
uses: actions/setup-go@v1
with:
go-version: 1.13.x
go-version: 1.14.x
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v1
with:
Expand All @@ -25,3 +25,7 @@ jobs:
key: ${{ secrets.YOUR_PRIVATE_KEY }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

- name: Run GoReleaser
if: steps.semantic.outputs.new_release_published == 'true'
uses: ./.github/actions/goreleaser
24 changes: 24 additions & 0 deletions .github/workflows/semantic-release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: semantic-release
on:
push:
branches:
- master

jobs:
semantic-release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2

- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v2
with:
extra_plugins: |
@semantic-release/git
@semantic-release/github
@semantic-release/commit-analyzer
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

13 changes: 13 additions & 0 deletions .releaserc.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
analyzeCommits:
format: angular
preset: angular
generateNotes:
preset: angular
changelogFile: CHANGELOG.md
plugins:
- @semantic-release/git
- @semantic-release/github
- @semantic-release/commit-analyzer
branch: master
success: false
fail: false

0 comments on commit 44623dd

Please sign in to comment.