Skip to content

Commit

Permalink
added publish to ci
Browse files Browse the repository at this point in the history
  • Loading branch information
shimwell committed Oct 22, 2024
1 parent 245a889 commit 6b6286a
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,21 @@ jobs:
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: cargo build --verbose
- run: cargo test --verbose
- run: cargo test --verbose

publish:
name: Publish to crates.io
if: ${{ startsWith(github.ref, 'refs/tags/') || github.event_name == 'workflow_dispatch' }}
runs-on: ubuntu-latest

steps:
- name: Publish
- uses: actions/checkout@v4
- run: rustup update stable && rustup default stable
- run: >
cargo publish
--dry-run
--verbose
--locked
--token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit 6b6286a

Please sign in to comment.