Skip to content

Commit

Permalink
Actions (#118)
Browse files Browse the repository at this point in the history
* add github action
  • Loading branch information
smedegaard authored Dec 1, 2024
1 parent 9ce0845 commit 606c5f6
Showing 1 changed file with 2 additions and 11 deletions.
13 changes: 2 additions & 11 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,8 @@ jobs:
steps:
- uses: actions/checkout@v4

# Update version in Cargo.toml
- name: Update version in Cargo.toml
run: |
VERSION=${{ steps.get_version.outputs.VERSION }}
# Remove 'v' prefix if present
VERSION=${VERSION#v}
sed -i "s/^version = \".*\"/version = \"$VERSION\"/" Cargo.toml
# Optional: Verify the update
- name: Verify Cargo.toml update
run: grep "^version = " Cargo.toml
- name: Bump version
uses: tj-actions/cargo-bump@v3

- name: Publish to crates.io
run: cargo publish --token ${CRATES_TOKEN}
Expand Down

0 comments on commit 606c5f6

Please sign in to comment.