Skip to content

Commit 1ad5a18

Browse files
authored
Create release.yml
1 parent f0f16bf commit 1ad5a18

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

.github/workflows/release.yml

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Go
2+
3+
on:
4+
release
5+
6+
jobs:
7+
8+
build:
9+
runs-on: ubuntu-latest
10+
steps:
11+
- uses: actions/checkout@v2
12+
- name: Set env
13+
run: echo "RELEASE_VERSION=${GITHUB_REF#refs/*/}" >> $GITHUB_ENV
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
19+
20+
- name: Test
21+
run: go test -v ./...
22+
23+
- name: Publish
24+
run: GOPROXY=proxy.golang.org go list -m github.com/anc95/golang-enum-to-ts@$RELEASE_VERSION

0 commit comments

Comments
 (0)