Skip to content

Commit

Permalink
Merge pull request #60 from Luzilla/release
Browse files Browse the repository at this point in the history
Finally fix the release workflow
  • Loading branch information
till authored Nov 4, 2020
2 parents a92a8b4 + b0b22bd commit 36798be
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 17 deletions.
17 changes: 0 additions & 17 deletions .circleci/config.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,6 @@ workflows:
- integration:
requires:
- build
release:
jobs:
- test
- release:
requires:
- test
filters:
branches:
ignore: /.*/
tags:
only: /^v.*/

jobs:
test:
Expand Down Expand Up @@ -85,9 +74,3 @@ jobs:
- run:
name: Test "/metrics" with targets
command: curl -i http://127.0.0.1:9211/metrics
release:
docker:
- *docker_goreleaser
steps:
- checkout
- run: goreleaser release --rm-dist
29 changes: 29 additions & 0 deletions .github/workflows/goreleaser.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
name: goreleaser

on:
push:
tags:
- '*'

jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
-
name: Checkout
uses: actions/checkout@v2
with:
fetch-depth: 0
-
name: Set up Go
uses: actions/setup-go@v2
with:
go-version: 1.14
-
name: Run GoReleaser
uses: goreleaser/goreleaser-action@v2
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 comments on commit 36798be

Please sign in to comment.