Skip to content

Commit e89b01d

Browse files
authored
Merge pull request #45 from trussworks/ee-release-github
[WIP] adding osx release to github actions
2 parents b43acf2 + e12c7d0 commit e89b01d

File tree

2 files changed

+31
-16
lines changed

2 files changed

+31
-16
lines changed

.circleci/config.yml

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -24,25 +24,9 @@ jobs:
2424
key: go-mod-sources-v1-{{ checksum "go.sum" }}
2525
paths:
2626
- "~/go/pkg/mod"
27-
release:
28-
docker:
29-
- image: goreleaser/goreleaser:v0.130
30-
steps:
31-
- checkout
32-
- run:
33-
name: Run goreleaser
34-
command: goreleaser
3527

3628
workflows:
3729
version: 2.1
3830
test:
3931
jobs:
4032
- test
41-
release:
42-
jobs:
43-
- release:
44-
filters:
45-
branches:
46-
ignore: /^.*/
47-
tags:
48-
only: /^v.*/

.github/workflows/release-macos.yml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,31 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
jobs:
9+
goreleaser:
10+
runs-on: macos-10.15
11+
steps:
12+
-
13+
name: Checkout
14+
uses: actions/checkout@v2
15+
-
16+
name: Unshallow
17+
run: git fetch --prune --unshallow
18+
-
19+
name: Set up Go
20+
uses: actions/setup-go@v1
21+
with:
22+
go-version: 1.14.x
23+
-
24+
name: Run GoReleaser
25+
uses: goreleaser/goreleaser-action@v1
26+
if: startsWith(github.ref, 'refs/tags/')
27+
with:
28+
version: latest
29+
args: release --rm-dist
30+
env:
31+
GITHUB_TOKEN: ${{ secrets.GH_TOKEN }}

0 commit comments

Comments
 (0)