Skip to content

Commit

Permalink
fix: Only publish one package at a time (#35)
Browse files Browse the repository at this point in the history
  • Loading branch information
mautamu authored Oct 18, 2023
1 parent abfbfe6 commit 7daeee6
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -114,9 +114,15 @@ jobs:
sed "s/[0-9]*\\.[0-9]*\\.[0-9]*-git/${RELEASE_TAG##*\/v}/" Cargo.toml.origl2 > Cargo.toml
mv Cargo.lock Cargo.lock.origl2
sed "s/[0-9]*\\.[0-9]*\\.[0-9]*-git/${RELEASE_TAG##*\/v}/" Cargo.lock.origl2 > Cargo.lock
- name: Publish crate
- name: Publish core crate
if: github.event_name == 'release'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --allow-dirty
cargo publish --allow-dirty -p lefthk-core
- name: Publish binary crate
if: github.event_name == 'release'
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
run: |
cargo publish --allow-dirty -p lefthk

0 comments on commit 7daeee6

Please sign in to comment.