build: Remove typo
All checks were successful
Code style / cargo-fmt (pull_request) Successful in 1m34s
Code style / cargo-check (pull_request) Successful in 1m33s
Code style / clippy (pull_request) Successful in 1m33s

Signed-off-by: Noah Knegt <git@noahknegt.com>
This commit is contained in:
2025-07-03 23:56:57 +02:00
parent c2df03303b
commit 96afdc76c2

View File

@@ -12,36 +12,36 @@ jobs:
build-and-release-artifact: build-and-release-artifact:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: Checkout code - name: Checkout code
uses: actions/checkout@v4 uses: actions/checkout@v4
# Cache cargo registry # Cache cargo registry
- name: Hash the lock file - name: Hash the lock file
uses: https://gitea.com/seepine/hash-files@v1 uses: https://gitea.com/seepine/hash-files@v1
id: get-hash id: get-hash
with: with:
patterns: | patterns: |
**/Cargo.lock **/Cargo.lock
- name: Setup rust - name: Setup rust
uses: actions-rust-lang/setup-rust-toolchain@v1 uses: actions-rust-lang/setup-rust-toolchain@v1
with: with:
toolchain: stable toolchain: stable
cache-shared-key: cargo-${{ steps.get-hash.outputs.hash }} cache-shared-key: cargo-${{ steps.get-hash.outputs.hash }}
matcher: false matcher: false
- name: Build application - name: Build application
run: cargo build --release --all-features --workspace --all-targets run: cargo build --release --all-features --workspace --all-targets
- name: Package application - name: Package application
ru8n: cargo package --all-features --workspace --allow-dirty run: cargo package --all-features --workspace --allow-dirty
- name: Add registry to cargo config - name: Add registry to cargo config
run: echo -e '[registries.gitea]\nindex = "sparse+https://git.noahknegt.com/api/packages/${{ github.repository_owner }}/cargo/"\n' > ~/.cargo/config.toml run: echo -e '[registries.gitea]\nindex = "sparse+https://git.noahknegt.com/api/packages/${{ github.repository_owner }}/cargo/"\n' > ~/.cargo/config.toml
- name: Publish to cargo registry - name: Publish to cargo registry
run: cargo publish --no-verify --registry gitea --token ${{ secrets.CARGO_REGISTRY_TOKEN }} run: cargo publish --no-verify --registry gitea --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
env: env:
CARGO_NET_GIT_FETCH_WITH_CLI: true CARGO_NET_GIT_FETCH_WITH_CLI: true
CARGO_NET_RETRY: 2 CARGO_NET_RETRY: 2
CARGO_NET_TIMEOUT: 120 CARGO_NET_TIMEOUT: 120