Skip to content

Commit

Permalink
chore: add release workflow
Browse files Browse the repository at this point in the history
prepare for regular github releases.
  • Loading branch information
toumorokoshi committed Nov 2, 2024
1 parent 17a0eda commit 714673b
Show file tree
Hide file tree
Showing 3 changed files with 54 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .github/workflows/go-test.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Go Tests
name: tests

on:
push:
Expand Down
48 changes: 48 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,48 @@
name: release

on:
release:
types: [published]

jobs:
build:
name: Build Release Binaries
runs-on: ubuntu-latest
strategy:
matrix:
include:
- os: linux
arch: amd64
artifact_name: aepcli-linux-amd64
- os: darwin
arch: amd64
artifact_name: aepcli-darwin-amd64
- os: darwin
arch: arm64
artifact_name: aepcli-darwin-arm64
- os: windows
arch: amd64
artifact_name: aepcli-windows-amd64.exe

steps:
- name: Checkout code
uses: actions/checkout@v4

- name: Set up Go
uses: actions/setup-go@v5
with:
go-version: "1.21"

- name: Build binary
env:
GOOS: ${{ matrix.os }}
GOARCH: ${{ matrix.arch }}
run: |
go build -o ${{ matrix.artifact_name }} ./cmd/aepcli
- name: Upload Release Asset
uses: softprops/action-gh-release@v1
with:
files: ${{ matrix.artifact_name }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
5 changes: 5 additions & 0 deletions docs/development.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Development Guide

## Release

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 comments on commit 714673b

Please sign in to comment.