Skip to content

Commit

Permalink
''
Browse files Browse the repository at this point in the history
  • Loading branch information
p4ken committed May 26, 2024
1 parent 451725e commit 0f963ca
Showing 1 changed file with 10 additions and 5 deletions.
15 changes: 10 additions & 5 deletions .github/workflows/rust.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ on:
bump:
type: choice
options:
- false
- ""
- patch
- minor

Expand All @@ -30,11 +30,16 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
- name: Install cargo set-version
run: cargo install cargo-edit
- name: Bump
run: |
cargo install cargo-edit
git config user.name "GitHub Actions"
git config user.email "<>"
cargo set-version --bump ${{ inputs.bump }}
git commit --all -m "v${{ inputs.bump }}"
git tag "v${{ inputs.bump }}"
- name: Publish
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --dry-run

0 comments on commit 0f963ca

Please sign in to comment.