Skip to content

Commit 36afb5b

Browse files
committed
ci: seperate runner task for dev builds
1 parent 67f8b5d commit 36afb5b

File tree

2 files changed

+49
-2
lines changed

2 files changed

+49
-2
lines changed
Lines changed: 47 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,47 @@
1+
name: Binary Builds Pre-Releases
2+
3+
on:
4+
push:
5+
tags:
6+
- 'v*-dev.*'
7+
8+
jobs:
9+
pre-release:
10+
name: Pre Release
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Get current date
14+
id: date
15+
run: echo "::set-output name=date::$(date +'%Y-%m-%d')"
16+
- name: Checkout the repository
17+
uses: actions/checkout@v2
18+
with:
19+
fetch-depth: 0
20+
- name: Generate Change Log
21+
id: generate_log
22+
run: |
23+
curl -s https://api.github.com/repos/barelyhuman/commitlog/releases/latest \
24+
| grep browser_download_url \
25+
| grep linux-amd64 \
26+
| cut -d '"' -f 4 \
27+
| wget -qi -
28+
tar -xvzf commitlog-linux-amd64.tar.gz
29+
chmod +x commitlog
30+
./commitlog . > CHANGELOG.txt
31+
- name: Generate build files
32+
uses: thatisuday/go-cross-build@v1
33+
with:
34+
platforms: "linux/amd64, linux/arm, linux/arm64, windows/amd64, darwin/amd64"
35+
package: ""
36+
name: commitlog
37+
compress: "true"
38+
dest: dist
39+
- name: Release
40+
uses: softprops/action-gh-release@v1
41+
if: startsWith(github.ref, 'refs/tags/')
42+
with:
43+
prerelease: true
44+
body_path: CHANGELOG.txt
45+
files: dist/*
46+
env:
47+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

.github/workflows/create-binaries.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@ name: Binary Builds
22

33
on:
44
push:
5-
tags:
6-
- 'v*.*.*'
5+
tags-ignore:
6+
- 'v*-dev.*'
77

88
jobs:
99
pre-release:

0 commit comments

Comments
 (0)