Bump version to 4.18.1 #130
Workflow file for this run
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: Publish | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| inputs: | |
| dry-run-only: | |
| description: "Run xtask publish in dry-run mode (no publish)" | |
| type: boolean | |
| required: false | |
| default: false | |
| jobs: | |
| tracel-xtask-utils: | |
| uses: tracel-ai/github-actions/.github/workflows/publish-crate.yml@v10 | |
| with: | |
| crate: tracel-xtask-utils | |
| tag-validation: true | |
| dry-run-only: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run-only || false }} | |
| secrets: | |
| CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} | |
| # -------------------------------------------------------------------------------- | |
| tracel-xtask-macros: | |
| uses: tracel-ai/github-actions/.github/workflows/publish-crate.yml@v10 | |
| with: | |
| crate: tracel-xtask-macros | |
| tag-validation: true | |
| dry-run-only: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run-only || false }} | |
| secrets: | |
| CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} | |
| # -------------------------------------------------------------------------------- | |
| tracel-xtask: | |
| uses: tracel-ai/github-actions/.github/workflows/publish-crate.yml@v10 | |
| with: | |
| crate: tracel-xtask | |
| tag-validation: true | |
| dry-run-only: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run-only || false }} | |
| needs: | |
| - tracel-xtask-macros | |
| - tracel-xtask-utils | |
| secrets: | |
| CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} | |
| # -------------------------------------------------------------------------------- | |
| tracel-xtask-cli: | |
| uses: tracel-ai/github-actions/.github/workflows/publish-crate.yml@v10 | |
| with: | |
| crate: tracel-xtask-cli | |
| tag-validation: false | |
| dry-run-only: ${{ github.event_name == 'workflow_dispatch' && inputs.dry-run-only || false }} | |
| needs: | |
| - tracel-xtask | |
| secrets: | |
| CRATES_IO_API_TOKEN: ${{ secrets.CRATES_IO_API_TOKEN }} | |
| # -------------------------------------------------------------------------------- | |
| linux-binary: | |
| name: Build and Release | |
| runs-on: ubuntu-latest | |
| needs: | |
| - tracel-xtask | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v6 | |
| # -------------------------------------------------------------------------------- | |
| - name: Install Rust | |
| uses: tracel-ai/github-actions/install-rust@v9 | |
| with: | |
| rust-toolchain: stable | |
| cache-key: stable-linux | |
| # -------------------------------------------------------------------------------- | |
| - name: Build xtask-core | |
| run: | | |
| cargo build --release -p xtask-core | |
| # -------------------------------------------------------------------------------- | |
| - name: Package xtask-core binary | |
| run: | | |
| mkdir -p dist | |
| cp target/release/xtask-core dist/xtask-core-linux-x86_64 | |
| tar -C dist -czf dist/xtask-core-linux-x86_64.tar.gz xtask-core-linux-x86_64 | |
| # -------------------------------------------------------------------------------- | |
| - name: Upload binary to GitHub Release | |
| uses: softprops/action-gh-release@v2 | |
| if: > | |
| startsWith(github.ref, 'refs/tags/') | |
| && !(github.event_name == 'workflow_dispatch' && inputs.dry-run-only) | |
| with: | |
| files: dist/xtask-core-linux-x86_64.tar.gz | |
| env: | |
| GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |