Skip to content

Commit

Permalink
add crates.io release
Browse files Browse the repository at this point in the history
  • Loading branch information
spencerwooo committed Nov 27, 2023
1 parent cd9e4a7 commit ce3ce07
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
9 changes: 9 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,12 @@ jobs:

- name: Run cargo check
run: cargo check --all-targets

- name: Publish to crates.io if new release
if: github.event_name == 'push' && contains(github.ref, 'refs/tags/')
shell: bash
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo login "$CARGO_REGISTRY_TOKEN"
cargo publish
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@

## Usage

```shell
bitsrun help
```console
$ bitsrun help
A headless login and logout CLI app for 10.0.0.55 at BIT

Usage: bitsrun [OPTIONS] [COMMAND]
Expand All @@ -31,4 +31,4 @@ Options:

## License

[MIT](./LICENSE).
[MIT](./LICENSE)

0 comments on commit ce3ce07

Please sign in to comment.