Skip to content

Commit

Permalink
ci: add publish on crates.io
Browse files Browse the repository at this point in the history
  • Loading branch information
cocool97 committed Nov 5, 2024
1 parent d932e93 commit a61e0b6
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/rust-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,17 @@ jobs:
- name: "Build RPM package"
run: cargo generate-rpm -p adb_cli

- name: "Publish deb package"
- name: "Publish GitHub artefacts"
uses: softprops/action-gh-release@v2
with:
files: |
target/debian/*.deb
target/generate-rpm/*.rpm
target/release/adb_cli
target/release/adb_cli
- name: "Publish crates"
run: |
cargo publish -p adb_client --token ${CRATES_IO_TOKEN}
cargo publish -p adb_cli --token ${CRATES_IO_TOKEN}
env:
CRATES_IO_TOKEN: ${{ secrets.CRATES_IO_TOKEN }}

0 comments on commit a61e0b6

Please sign in to comment.