Skip to content

[FIX] Installer self update. #11

[FIX] Installer self update.

[FIX] Installer self update. #11

Workflow file for this run

name: Release
on:
push:
tags:
- "v*"
permissions:
contents: write
jobs:
build:
runs-on: ubuntu-latest
strategy:
fail-fast: false
matrix:
include:
- goos: linux
goarch: amd64
output: evo-linux-amd64
- goos: linux
goarch: arm64
output: evo-linux-arm64
- goos: darwin
goarch: amd64
output: evo-darwin-amd64
- goos: darwin
goarch: arm64
output: evo-darwin-arm64
- goos: windows
goarch: amd64
output: evo-windows-amd64.exe
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
cache: true
- name: Build
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
CGO_ENABLED: "0"
run: |
set -euo pipefail
mkdir -p dist
go build -trimpath -ldflags "-s -w -X main.Version=${{ github.ref_name }}" -o "dist/${{ matrix.output }}" ./cmd/evo
- uses: actions/upload-artifact@v4
with:
name: ${{ matrix.output }}
path: dist/${{ matrix.output }}
if-no-files-found: error
release:
runs-on: ubuntu-latest
needs: build
steps:
- uses: actions/download-artifact@v4
with:
path: out
merge-multiple: true
- name: Generate checksums
run: |
set -euo pipefail
cd out
sha256sum evo-* > checksums.txt
- name: Create GitHub Release
uses: softprops/action-gh-release@v2
with:
files: |
out/evo-linux-amd64
out/evo-linux-arm64
out/evo-darwin-amd64
out/evo-darwin-arm64
out/evo-windows-amd64.exe
out/checksums.txt