feat: added support for bridge os 2.0 commands #35
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
on: | |
push: | |
branches: | |
- main | |
name: release-please | |
jobs: | |
# check, test, format and clippy in one step | |
prepublish: | |
name: pre-publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y pkg-config libudev-dev | |
- uses: actions-rs/toolchain@v1 | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: check | |
args: --all-targets | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: test | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: fmt | |
args: --all -- --check | |
- uses: actions-rs/cargo@v1 | |
with: | |
command: clippy | |
args: -- -D warnings | |
release-please: | |
name: publish | |
runs-on: ubuntu-latest | |
steps: | |
- uses: google-github-actions/release-please-action@v3 | |
id: release | |
with: | |
release-type: rust | |
package-name: release-please-action | |
- uses: actions/checkout@v2 | |
if: ${{ steps.release.outputs.release_created }} | |
- run: sudo apt-get update && sudo apt-get install --no-install-recommends -y pkg-config libudev-dev | |
if: ${{ steps.release.outputs.release_created }} | |
- uses: actions-rs/toolchain@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
profile: minimal | |
toolchain: stable | |
override: true | |
- uses: actions-rs/cargo@v1 | |
if: ${{ steps.release.outputs.release_created }} | |
with: | |
command: publish | |
args: --locked --token ${{ secrets.CARGO_REGISTRY_TOKEN }} |