Skip to content

Commit 08fa454

Browse files
Add github action workflow for goreleaser (#63)
* Add github action workflow for goreleaser Signed-off-by: siddhant-deepsource <siddhant@deepsource.io> * Use workdir to switch to directory containing main package Signed-off-by: siddhant-deepsource <siddhant@deepsource.io> * Accepts all tags for release creation Signed-off-by: siddhant-deepsource <siddhant@deepsource.io>
1 parent f5680ba commit 08fa454

File tree

1 file changed

+35
-0
lines changed

1 file changed

+35
-0
lines changed

.github/workflows/release.yml

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
name: goreleaser
2+
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
8+
permissions:
9+
contents: write
10+
11+
jobs:
12+
release-cli:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v2
17+
with:
18+
fetch-depth: 0
19+
ref: develop
20+
21+
- name: Set up Go
22+
uses: actions/setup-go@v2
23+
with:
24+
go-version: 1.16
25+
26+
- name: Run GoReleaser
27+
uses: goreleaser/goreleaser-action@v2
28+
with:
29+
distribution: goreleaser
30+
version: latest
31+
workdir: ./cmd/deepsource
32+
args: release --rm-dist --config ../../goreleaser.yaml
33+
env:
34+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
DEEPSOURCE_CLI_SENTRY_DSN: ${{ secrets.SENTRY_DSN }}

0 commit comments

Comments
 (0)