docs: address config review feedback (#139) #51
This file contains hidden or 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
| name: release-please | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| concurrency: | |
| group: release-please-${{ github.ref }} | |
| cancel-in-progress: false | |
| jobs: | |
| release-please: | |
| name: Release PR / tag | |
| runs-on: ubuntu-latest | |
| outputs: | |
| release_created: ${{ steps.release.outputs.release_created }} | |
| tag_name: ${{ steps.release.outputs.tag_name }} | |
| version: ${{ steps.release.outputs.version }} | |
| steps: | |
| - uses: googleapis/release-please-action@v5 | |
| id: release | |
| with: | |
| config-file: release-please-config.json | |
| manifest-file: .release-please-manifest.json | |
| token: ${{ secrets.GITHUB_TOKEN }} | |
| crates-io: | |
| name: Publish to crates.io | |
| needs: release-please | |
| if: ${{ needs.release-please.outputs.release_created == 'true' }} | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v6 | |
| with: | |
| ref: ${{ needs.release-please.outputs.tag_name }} | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - name: cargo publish (bottom-up) | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} | |
| run: | | |
| set -euo pipefail | |
| # Publish in dependency order. `cargo publish --dry-run` first | |
| # on each so an upload failure doesn't leave a half-released state. | |
| for crate in plumb-core plumb-format plumb-cdp plumb-config plumb-mcp plumb-cli; do | |
| echo "▸ publishing $crate" | |
| ( cd "crates/$crate" && cargo publish --dry-run ) | |
| done | |
| for crate in plumb-core plumb-format plumb-cdp plumb-config plumb-mcp plumb-cli; do | |
| ( cd "crates/$crate" && cargo publish ) | |
| # Wait for the index to catch up so the next crate's dep resolves. | |
| sleep 30 | |
| done |