From f78e5c738668ca625edc63555ee50fb2e0deccff Mon Sep 17 00:00:00 2001 From: "Caleb J. Gardner" Date: Thu, 12 Feb 2026 04:27:06 -0600 Subject: [PATCH] Rever to previous Action --- .github/workflows/release-build.yml | 24 +++++++++++------------- 1 file changed, 11 insertions(+), 13 deletions(-) diff --git a/.github/workflows/release-build.yml b/.github/workflows/release-build.yml index 423334b..bb36c74 100644 --- a/.github/workflows/release-build.yml +++ b/.github/workflows/release-build.yml @@ -1,6 +1,9 @@ name: Release Build -on: release +on: + push: + tags: + - "v*.*.*" jobs: build: @@ -8,7 +11,7 @@ jobs: steps: - name: Checkout uses: actions/checkout@v6 - - uses: mlugg/setup-zig@v2 + - uses: https://codeberg.org/mlugg/setup-zig@v2 - name: Install deps run: sudo apt update && sudo apt install -y zlib1g-dev libzstd-dev liblzma-dev liblz4-dev liblzo2-dev - name: Build normal version @@ -19,15 +22,10 @@ jobs: run: zig build -Drelease=true -Duse_c_libs=true -Dversion="${{ github.ref_name }}" - name: Move C build out run: mv zig-out/bin/unsquashfs ./unsquashfs-c-libs - - name: Upload to release - uses: JasonEtco/upload-to-release@master + - name: Release + uses: softprops/action-gh-release@v2 with: - args: unsquashfs application/x-executable - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - - name: Upload to release - uses: JasonEtco/upload-to-release@master - with: - args: unsquashfs-c-libs application/x-executable - env: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + prerelease: true + files: | + ./unsquashfs + ./unsquashfs-c-libs