Skip to content

Commit

Permalink
ci: update cargo files using exec plugin (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
CharlieC3 authored Jun 30, 2024
1 parent 14bd37b commit 005bacd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -183,8 +183,8 @@ jobs:
extra_plugins: |
@semantic-release/[email protected]
@semantic-release/[email protected]
@semantic-release/[email protected]
[email protected]
@semantic-release-cargo/semantic-release-cargo
runehook-build-publish:
runs-on: ubuntu-latest
Expand Down
7 changes: 6 additions & 1 deletion .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,12 @@
"npmPublish": false
}
],
"@semantic-release-cargo/semantic-release-cargo",
[
"@semantic-release/exec",
{
"prepareCmd": "sed -i -e '1h;2,$H;$!d;g' -e 's@name = \"runehook\"\\nversion = \"[^\"]*\"@name = \"runehook\"\\nversion = \"${nextRelease.version}\"@g' Cargo.toml Cargo.lock"
}
],
"@semantic-release/github",
"@semantic-release/changelog",
[
Expand Down

0 comments on commit 005bacd

Please sign in to comment.