ci: Automate GitHub Releases with timestamped tags

This commit is contained in:
spinline
2026-01-31 00:03:19 +03:00
parent 16fbf7306a
commit 6490b7c2b9

View File

@@ -5,6 +5,9 @@ on:
branches: [ "main" ] branches: [ "main" ]
workflow_dispatch: workflow_dispatch:
permissions:
contents: write
env: env:
CARGO_TERM_COLOR: always CARGO_TERM_COLOR: always
@@ -60,8 +63,18 @@ jobs:
find target -maxdepth 5 || true find target -maxdepth 5 || true
ls -R target/mips-unknown-linux-musl/release || true ls -R target/mips-unknown-linux-musl/release || true
- name: Upload Binary - name: Rename Binary
uses: actions/upload-artifact@v4 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: with:
name: vibetorrent-mips tag_name: ${{ steps.tag.outputs.release_tag }}
path: target/mips-unknown-linux-musl/release/backend name: Release ${{ steps.tag.outputs.release_tag }}
files: target/mips-unknown-linux-musl/release/vibetorrent-mips
draft: false
prerelease: false