Skip to content

Commit

Permalink
Fix release workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
thomasschafer committed Nov 14, 2024
1 parent 065de57 commit 8352a4b
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,20 @@ on:
branches: [ "main" ]
paths:
- 'Cargo.toml'
workflow_dispatch: # Allows manual triggering

permissions:
contents: write

jobs:
release:
name: Release
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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 8352a4b

Please sign in to comment.