Skip to content

Commit

Permalink
Publish with unified versioning via release-plz (#266)
Browse files Browse the repository at this point in the history
  • Loading branch information
LukeMathWalker committed Apr 20, 2024
1 parent 980f069 commit 4c981fa
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
20 changes: 18 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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 }}
11 changes: 11 additions & 0 deletions libs/.release-plz.toml
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

0 comments on commit 4c981fa

Please sign in to comment.