Skip to content

Commit

Permalink
CI: Fix publish
Browse files Browse the repository at this point in the history
Issue #32
  • Loading branch information
AngheloAlf committed Feb 22, 2024
1 parent ac8978f commit ab09d4a
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions .github/workflows/publish_crate.yml
Original file line number Diff line number Diff line change
Expand Up @@ -131,10 +131,18 @@ jobs:
- name: Build Rust package
run: cargo build --release --workspace

- name: Publish dry run
- name: Publish slinky dry run
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
run: cargo publish --dry-run
run: cargo publish --package slinky --dry-run

- name: Upload crate
- name: Upload slinky crate
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: cargo publish --token ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: cargo publish --package slinky --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

- name: Publish slinky-cli dry run
if: github.event_name == 'push' && !startsWith(github.ref, 'refs/tags/')
run: cargo publish --package slinky-cli --dry-run

- name: Upload slinky-cli crate
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/')
run: cargo publish --package slinky-cli --token ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 comments on commit ab09d4a

Please sign in to comment.