From 322ba2a3552088a1927c0179519cb554f7bb63e7 Mon Sep 17 00:00:00 2001 From: JasterV <49537445+JasterV@users.noreply.github.com> Date: Wed, 11 Feb 2026 11:41:47 +0100 Subject: [PATCH] add workflow to publish binaries --- .github/workflows/release-binaries.yml | 39 ++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100644 .github/workflows/release-binaries.yml diff --git a/.github/workflows/release-binaries.yml b/.github/workflows/release-binaries.yml new file mode 100644 index 0000000..2d7a573 --- /dev/null +++ b/.github/workflows/release-binaries.yml @@ -0,0 +1,39 @@ +name: Release Binaries + +permissions: + contents: write + +on: + release: + types: [published, created] + +jobs: + upload-assets: + name: Upload assets for ${{ matrix.target }} + if: startsWith(github.event.release.tag_name, 'granc-v') + runs-on: ${{ matrix.os }} + strategy: + matrix: + include: + # Linux x86_64 + - target: x86_64-unknown-linux-gnu + os: ubuntu-latest + # macOS x86_64 (Intel) + - target: x86_64-apple-darwin + os: macos-latest + # macOS ARM64 (Apple Silicon) + - target: aarch64-apple-darwin + os: macos-latest + # Windows x86_64 + - target: x86_64-pc-windows-msvc + os: windows-latest + + steps: + - uses: actions/checkout@v4 + + - name: Build and Upload + uses: taiki-e/upload-rust-binary-action@v1 + with: + bin: granc + target: ${{ matrix.target }} + token: ${{ secrets.GITHUB_TOKEN }}