Skip to content

Release builds

Release builds #2

Workflow file for this run

name: Release builds
on:
workflow_dispatch: # Allows manual trigger
push:
tags:
- 'v*.*.*' # automatically react on semantic versioned tags
jobs:
release:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- name: Setup Go
uses: actions/setup-go@v5
with:
go-version: '1.23.x'
cache-dependency-path: go.sum
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- name: Build (optimized for smplOS)
run: |
make generate
make build-release
VERSION="$(go run tools/build-version.go)"
mkdir -p "micro-$VERSION"
cp micro LICENSE README.md LICENSE-THIRD-PARTY \
assets/packaging/micro.1 assets/packaging/micro.desktop \
"micro-$VERSION/"
tar -czf "micro-$VERSION-linux64.tar.gz" "micro-$VERSION"
sha256sum "micro-$VERSION-linux64.tar.gz" > "micro-$VERSION-linux64.tar.gz.sha"
mkdir -p binaries
mv "micro-$VERSION-linux64.tar.gz" "micro-$VERSION-linux64.tar.gz.sha" binaries/
- name: Publish
uses: softprops/action-gh-release@v2
with:
files: binaries/*
- name: Cleanup
run: rm -rf binaries