Tapo Python v0.1.3 #3
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 publish | |
on: | |
release: | |
types: | |
- created | |
jobs: | |
publish: | |
name: Publish | |
runs-on: ubuntu-latest | |
if: "startsWith(github.ref, 'refs/tags/v')" | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
ref: main | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- 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 | |
run: cargo publish --package tapo |