Skip to content

Commit

Permalink
Added release flow
Browse files Browse the repository at this point in the history
  • Loading branch information
vgarvardt committed Jun 10, 2020
1 parent 42a2485 commit 85a1df4
Show file tree
Hide file tree
Showing 2 changed files with 26 additions and 3 deletions.
26 changes: 26 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Testing

on:
release:
types:
- created

jobs:
goreleaser:
runs-on: ubuntu-latest

steps:
- name: Check out code
uses: actions/checkout@v2
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v2
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
if: startsWith(github.ref, 'refs/tags/')
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3 changes: 0 additions & 3 deletions .github/workflows/testing.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,6 @@ on:
branches: [ master ]
pull_request:
branches: [ master ]
release:
types:
- created

jobs:
lint:
Expand Down

0 comments on commit 85a1df4

Please sign in to comment.