From 8352a4ba21eab6a01911ad9e21320001fe093ef0 Mon Sep 17 00:00:00 2001 From: thomasschafer Date: Thu, 14 Nov 2024 22:59:30 +0000 Subject: [PATCH] Fix release workflow --- .github/workflows/release.yml | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 901c5d4..c2d22c5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -5,6 +5,10 @@ on: branches: [ "main" ] paths: - 'Cargo.toml' + workflow_dispatch: # Allows manual triggering + +permissions: + contents: write jobs: release: @@ -12,6 +16,9 @@ jobs: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 + with: + fetch-depth: 0 + token: ${{ secrets.GITHUB_TOKEN }} - name: Get package info from Cargo.toml id: get-package-info @@ -41,11 +48,11 @@ jobs: git config --local user.email "github-actions[bot]@users.noreply.github.com" git config --local user.name "github-actions[bot]" - git tag -a "v${version}" -m "Release v${version}" + git tag -a "v${version}" git push origin "v${version}" gh release create "v${version}" \ - --title "Release v${version}" \ + --title "v${version}" \ --generate-notes - name: Install Rust toolchain