From 6490b7c2b9371ebf9c5bcd7ca5a0db2e5a276245 Mon Sep 17 00:00:00 2001 From: spinline Date: Sat, 31 Jan 2026 00:03:19 +0300 Subject: [PATCH] ci: Automate GitHub Releases with timestamped tags --- .github/workflows/build-mips.yml | 21 +++++++++++++++++---- 1 file changed, 17 insertions(+), 4 deletions(-) diff --git a/.github/workflows/build-mips.yml b/.github/workflows/build-mips.yml index 62c2d17..4f1deb3 100644 --- a/.github/workflows/build-mips.yml +++ b/.github/workflows/build-mips.yml @@ -5,6 +5,9 @@ on: branches: [ "main" ] workflow_dispatch: +permissions: + contents: write + env: CARGO_TERM_COLOR: always @@ -60,8 +63,18 @@ jobs: find target -maxdepth 5 || true ls -R target/mips-unknown-linux-musl/release || true - - name: Upload Binary - uses: actions/upload-artifact@v4 + - name: Rename Binary + run: mv target/mips-unknown-linux-musl/release/backend target/mips-unknown-linux-musl/release/vibetorrent-mips + + - name: Generate Tag + id: tag + run: echo "release_tag=release-$(date +'%Y%m%d-%H%M')" >> $GITHUB_OUTPUT + + - name: Create Release + uses: softprops/action-gh-release@v1 with: - name: vibetorrent-mips - path: target/mips-unknown-linux-musl/release/backend + tag_name: ${{ steps.tag.outputs.release_tag }} + name: Release ${{ steps.tag.outputs.release_tag }} + files: target/mips-unknown-linux-musl/release/vibetorrent-mips + draft: false + prerelease: false