Skip to content

Commit 1dd327d

Browse files
committed
Build: Add build output to tags assets
1 parent bd4171f commit 1dd327d

File tree

2 files changed

+22
-2
lines changed

2 files changed

+22
-2
lines changed

.github/workflows/main.yml

-2
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
tags:
8-
- '*'
97
pull_request:
108
branches:
119
- master

.github/workflows/tags.yml

+22
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
---
2+
name: Main Workflow
3+
on:
4+
push:
5+
tags:
6+
- '*'
7+
jobs:
8+
build:
9+
runs-on: ubuntu-20.04
10+
steps:
11+
- uses: actions/checkout@v3
12+
- uses: actions/setup-go@v3
13+
with:
14+
go-version: '1.19.2'
15+
- name: Build
16+
run: go build -o semangit .
17+
- name: Smoke test
18+
run: ./semangit --help
19+
- name: Upload binary to release
20+
uses: svenstaro/upload-release-action@v2
21+
with:
22+
file: semangit

0 commit comments

Comments
 (0)