Skip to content

Merge torrust/torrust-index#721: Release Version 3.0.0-beta #4

Merge torrust/torrust-index#721: Release Version 3.0.0-beta

Merge torrust/torrust-index#721: Release Version 3.0.0-beta #4

Workflow file for this run

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: imdl
name: Install Intermodal
run: cargo install imdl
- 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-index-located-error
cargo publish -p torrust-index