fix(artifacts): tighten branch regex (v0.6.1) #24
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 to crates.io | |
| on: | |
| push: | |
| tags: | |
| - "v*" | |
| workflow_dispatch: | |
| jobs: | |
| publish: | |
| name: cargo publish | |
| runs-on: ubuntu-latest | |
| env: | |
| CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - name: Install Rust | |
| uses: dtolnay/rust-toolchain@stable | |
| - name: Cache cargo | |
| uses: Swatinem/rust-cache@v2 | |
| - name: Verify token is set | |
| run: | | |
| if [ -z "$CARGO_REGISTRY_TOKEN" ]; then | |
| echo "::error::CARGO_REGISTRY_TOKEN is empty. Check CRATES_IO_TOKEN secret." | |
| exit 1 | |
| fi | |
| echo "Token is set (length: ${#CARGO_REGISTRY_TOKEN})" | |
| - name: Publish task-journal-core | |
| run: cargo publish -p task-journal-core | |
| - name: Wait for crates.io to index core | |
| run: sleep 60 | |
| - name: Publish task-journal-cli | |
| run: cargo publish -p task-journal-cli | |
| - name: Wait for crates.io to index cli | |
| run: sleep 30 | |
| - name: Publish task-journal-mcp | |
| run: cargo publish -p task-journal-mcp |