Skip to content

Commit

Permalink
Update publish.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mdr0id authored Sep 30, 2024
1 parent ef2d923 commit ed122c4
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ jobs:
publish:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/checkout@v2

- name: Install Rust
uses: actions-rs/toolchain@v1
Expand All @@ -33,7 +33,7 @@ jobs:
COMMIT_HASH=$(git rev-parse --short HEAD)
NEW_VERSION="${VERSION}-pre.${COMMIT_HASH}"
sed -i "s/^version = \".*\"/version = \"${NEW_VERSION}\"/" Cargo.toml
cargo publish --token "${{ secrets.CRATES_IO_TOKEN }}" --allow-dirty
CARGO_REGISTRY_TOKEN=${{ secrets.CRATES_IO_TOKEN }} cargo publish --allow-dirty
else
echo "Not publishing: not a push to master or a tag"
fi

0 comments on commit ed122c4

Please sign in to comment.