-
Notifications
You must be signed in to change notification settings - Fork 55
67 lines (55 loc) · 1.63 KB
/
Copy pathdeployment.yaml
File metadata and controls
67 lines (55 loc) · 1.63 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
name: Deployment (Tracker)
# adr: docs/adrs/20260629000000_adopt_independent_package_versioning.md
#
# Publishes only the root `torrust-tracker` binary crate to crates.io.
# All dependency crates are published independently via `deployment-packages.yaml`
# as they evolve. By the time a tracker release happens, they are already on
# crates.io — this workflow only needs to publish the final binary crate.
#
# See docs/release_process.md for the full release workflow.
on:
push:
branches:
- "releases/v*"
jobs:
test:
name: Test
runs-on: ubuntu-latest
strategy:
matrix:
toolchain: [nightly, stable]
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v7
- 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
strategy:
matrix:
toolchain: [stable]
steps:
- id: checkout
name: Checkout Repository
uses: actions/checkout@v7
- id: setup
name: Setup Toolchain
uses: dtolnay/rust-toolchain@stable
with:
toolchain: ${{ matrix.toolchain }}
- id: publish
name: Publish torrust-tracker
env:
CARGO_REGISTRY_TOKEN: "${{ secrets.TORRUST_UPDATE_CARGO_REGISTRY_TOKEN }}"
run: |
cargo publish -p torrust-tracker