build(deps): bump reqwest from 0.12.9 to 0.12.10 #372
Workflow file for this run
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: Rust | |
on: | |
push: | |
branches: | |
- main | |
tags: | |
- "*" | |
pull_request: | |
workflow_dispatch: | |
permissions: | |
contents: read | |
jobs: | |
checks: | |
name: Rust checks | |
runs-on: ubuntu-latest | |
steps: | |
- uses: dtolnay/rust-toolchain@stable | |
- uses: davidB/rust-cargo-make@v1 | |
- uses: actions/checkout@v4 | |
- name: Run format | |
run: cargo make format | |
- name: Run check | |
run: cargo make check | |
- name: Run check doc | |
run: cargo make check-doc | |
- name: Run clippy | |
run: cargo make clippy | |
- name: Run test | |
run: cargo make test | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/tags/v') || github.event_name == 'workflow_dispatch' }} | |
needs: [checks] | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
ref: main | |
- uses: dtolnay/rust-toolchain@stable | |
- name: Run cargo login | |
run: cargo login ${CRATES_IO_TOKEN} | |
env: | |
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} | |
- name: Run build | |
run: cargo build --package tapo --release --verbose | |
- name: Run cargo publish | |
if: ${{ startsWith(github.ref, 'refs/tags/v') }} | |
run: cargo publish --package tapo |