-
Notifications
You must be signed in to change notification settings - Fork 57
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Publish with unified versioning via release-plz (#266)
- Loading branch information
1 parent
980f069
commit 4c981fa
Showing
2 changed files
with
29 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -12,17 +12,33 @@ jobs: | |
name: Release-plz | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Generate GitHub token | ||
uses: actions/create-github-app-token@v1 | ||
id: generate-token | ||
with: | ||
app-id: ${{ secrets.RELEASER_APP_ID }} | ||
private-key: ${{ secrets.RELEASER_PRIVATE_KEY }} | ||
- name: Checkout repository | ||
uses: actions/checkout@v3 | ||
with: | ||
fetch-depth: 0 | ||
token: ${{ secrets.RELEASE_PLZ_TOKEN }} | ||
token: ${{ steps.generate-token.outputs.token }} | ||
- name: Install Rust toolchain | ||
uses: dtolnay/rust-toolchain@stable | ||
- name: Install cargo-hakari | ||
uses: taiki-e/install-action@v2 | ||
with: | ||
tool: cargo-hakari | ||
- name: Remove workspace hack from Cargo.toml | ||
run: | | ||
cd libs | ||
cargo hakari disable | ||
cargo hakari remove-deps | ||
- name: Run release-plz | ||
uses: MarcoIeni/[email protected] | ||
with: | ||
project_manifest: "libs/Cargo.toml" | ||
config: "libs/.release-plz.toml" | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.RELEASE_PLZ_TOKEN }} | ||
GITHUB_TOKEN: ${{ steps.generate-token.outputs.token }} | ||
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,11 @@ | ||
[workspace] | ||
changelog_update = false | ||
git_release_enable = false | ||
git_tag_enable = false | ||
|
||
[[package]] | ||
name = "pavex" | ||
changelog_update = true | ||
changelog_path = "./CHANGELOG.md" | ||
git_tag_name = "{{ version }}" | ||
git_tag_enable = true |