Skip to content

Commit eb12514

Browse files
authored
actions (#1)
* Create go.yml * Update go.yml * Update go.yml * Create release.yml * Update go.yml
1 parent 8385970 commit eb12514

File tree

2 files changed

+37
-0
lines changed

2 files changed

+37
-0
lines changed

.github/workflows/go.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
name: Go
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
pull_request:
7+
branches: [ main ]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: actions/checkout@v2
14+
15+
- name: Set up Go
16+
uses: actions/setup-go@v2
17+
with:
18+
go-version: 1.17
19+
20+
- name: Build
21+
run: cd etl && go build -v ./...

.github/workflows/release.yml

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
on:
2+
release:
3+
types: [created]
4+
5+
jobs:
6+
release-linux-amd64:
7+
name: release linux/amd64
8+
runs-on: ubuntu-latest
9+
steps:
10+
- uses: actions/checkout@v2
11+
- uses: wangyoucao577/go-release-action@v1.26
12+
with:
13+
github_token: ${{ secrets.GITHUB_TOKEN }}
14+
goos: linux
15+
goarch: amd64
16+
project_path: "./etl"

0 commit comments

Comments
 (0)