Repository navigation
recognize inline Cargo lint tables #18
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 | |
| on: | |
| push: | |
| branches: | |
| - main | |
| workflow_dispatch: | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| jobs: | |
| publish-dry-run: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - run: | | |
| set -euo pipefail | |
| find packages -name Cargo.toml -print0 | | |
| sort -z | | |
| while IFS= read -r -d '' manifest; do | |
| cargo publish --dry-run --manifest-path "$manifest" | |
| done | |
| release-plz: | |
| needs: publish-dry-run | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| manifest: | |
| - packages/aqc-file-engine-core/Cargo.toml | |
| - packages/aqc-filetree/Cargo.toml | |
| - packages/aqc-fs-utils/Cargo.toml | |
| - packages/aqc-git-helpers/Cargo.toml | |
| - packages/source/rust/aqc-rust-syntax/Cargo.toml | |
| - packages/file-types/toml/aqc-toml-engine-core/Cargo.toml | |
| - packages/file-types/toml/aqc-cargo-toml-engine/Cargo.toml | |
| - packages/file-types/toml/aqc-clippy-toml-engine/Cargo.toml | |
| - packages/file-types/toml/aqc-rustfmt-toml-engine/Cargo.toml | |
| permissions: | |
| contents: write | |
| pull-requests: write | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - uses: dtolnay/rust-toolchain@stable | |
| - uses: Swatinem/rust-cache@v2 | |
| - uses: release-plz/action@v0.5 | |
| with: | |
| manifest_path: ${{ matrix.manifest }} | |
| config: release-plz.toml | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }} |