Skip to content

Commit 714673b

Browse files
committed
chore: add release workflow
prepare for regular github releases.
1 parent 17a0eda commit 714673b

3 files changed

Lines changed: 54 additions & 1 deletion

File tree

.github/workflows/go-test.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Go Tests
1+
name: tests
22

33
on:
44
push:

.github/workflows/release.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: release
2+
3+
on:
4+
release:
5+
types: [published]
6+
7+
jobs:
8+
build:
9+
name: Build Release Binaries
10+
runs-on: ubuntu-latest
11+
strategy:
12+
matrix:
13+
include:
14+
- os: linux
15+
arch: amd64
16+
artifact_name: aepcli-linux-amd64
17+
- os: darwin
18+
arch: amd64
19+
artifact_name: aepcli-darwin-amd64
20+
- os: darwin
21+
arch: arm64
22+
artifact_name: aepcli-darwin-arm64
23+
- os: windows
24+
arch: amd64
25+
artifact_name: aepcli-windows-amd64.exe
26+
27+
steps:
28+
- name: Checkout code
29+
uses: actions/checkout@v4
30+
31+
- name: Set up Go
32+
uses: actions/setup-go@v5
33+
with:
34+
go-version: "1.21"
35+
36+
- name: Build binary
37+
env:
38+
GOOS: ${{ matrix.os }}
39+
GOARCH: ${{ matrix.arch }}
40+
run: |
41+
go build -o ${{ matrix.artifact_name }} ./cmd/aepcli
42+
43+
- name: Upload Release Asset
44+
uses: softprops/action-gh-release@v1
45+
with:
46+
files: ${{ matrix.artifact_name }}
47+
env:
48+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

docs/development.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Development Guide
2+
3+
## Release
4+
5+
To release a new version of aepcli create a github release that uses semantic versioning. A workflow will be triggered to build the binaries and upload them to the release.

0 commit comments

Comments
 (0)