Skip to content

Update releases.yml

Update releases.yml #2

Workflow file for this run

name: Release
on:
push:
tags:
- "v[0-9]+.[0-9]+.[0-9]+"
jobs:
uploadAssets:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: '^1.21.0' # The Go version to download (if necessary) and use.
- name: Build Binaries
run: |
sudo apt-get install -y gcc-aarch64-linux-gnu
make build-all-binary
tar -czvf build/iris-linux-amd64-${ github.ref }.tar.gz build/iris-linux-amd64
tar -czvf build/iris-linux-arm64-${ github.ref }.tar.gz build/iris-linux-arm64
mv build/iris-windows-amd64.exe build/iris-windows-amd64-${ github.ref }.exe
- name: Release
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
body_path: RELEASE.md
files: |
build/iris-linux-amd64-${ github.ref }.tar.gz
build/iris-linux-arm64-${ github.ref }.tar.gz
build/iris-windows-amd64-${ github.ref }.exe