Skip to content

chore: bump version to 1.2.1 #13

chore: bump version to 1.2.1

chore: bump version to 1.2.1 #13

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
jobs:
build:
name: Build binaries
runs-on: ubuntu-latest
strategy:
matrix:
goos: [darwin, linux]
goarch: [amd64, arm64]
steps:
- uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.24'
- name: Build binary
env:
GOOS: ${{ matrix.goos }}
GOARCH: ${{ matrix.goarch }}
run: |
go build -o glm-${{ matrix.goos }}-${{ matrix.goarch }} .
- name: Upload binary
uses: actions/upload-artifact@v4
with:
name: glm-${{ matrix.goos }}-${{ matrix.goarch }}
path: glm-${{ matrix.goos }}-${{ matrix.goarch }}
release:
name: Create release
needs: build
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Download all artifacts
uses: actions/download-artifact@v4
- name: Create release
uses: softprops/action-gh-release@v2
with:
files: |
glm-darwin-amd64/glm-darwin-amd64
glm-darwin-arm64/glm-darwin-arm64
glm-linux-amd64/glm-linux-amd64
glm-linux-arm64/glm-linux-arm64
draft: false
prerelease: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}