Merge torrust/torrust-tracker#454: Release Version 3.0.0-alpha.10
#7
This file contains 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: Deployment | |
on: | |
push: | |
branches: | |
- "releases/**/*" | |
jobs: | |
test: | |
name: Test | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
toolchain: [stable, nightly] | |
steps: | |
- id: checkout | |
name: Checkout Repository | |
uses: actions/checkout@v4 | |
- id: setup | |
name: Setup Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: ${{ matrix.toolchain }} | |
- id: test | |
name: Run Unit Tests | |
run: cargo test --tests --benches --examples --workspace --all-targets --all-features | |
publish: | |
name: Publish | |
environment: deployment | |
needs: test | |
runs-on: ubuntu-latest | |
steps: | |
- id: checkout | |
name: Checkout Repository | |
uses: actions/checkout@v4 | |
- id: setup | |
name: Setup Toolchain | |
uses: dtolnay/rust-toolchain@stable | |
with: | |
toolchain: stable | |
- id: publish | |
name: Publish Crates | |
env: | |
CARGO_REGISTRY_TOKEN: "${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}" | |
run: | | |
cargo publish -p torrust-tracker-contrib-bencode | |
cargo publish -p torrust-tracker-located-error | |
cargo publish -p torrust-tracker-primitives | |
cargo publish -p torrust-tracker-configuration | |
cargo publish -p torrust-tracker-test-helpers | |
cargo publish -p torrust-tracker |