Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
- Disable 'publish-crate' action temporarily in release workflow to ensure initial release can proceed.
  • Loading branch information
omerbustun committed Feb 8, 2024
1 parent ab2c0a7 commit 6b30ff8
Showing 1 changed file with 16 additions and 16 deletions.
32 changes: 16 additions & 16 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -63,19 +63,19 @@ jobs:
draft: true
files: ${{ env.ASSET }}

publish-crate:
needs: [release] # This job depends on the successful completion of the 'release' job
runs-on: ubuntu-latest
if: startsWith(github.ref, 'refs/tags/') # Only runs this job if the push is a tag
steps:
- uses: actions/checkout@v3

- name: Setup Rust
uses: actions-rust-lang/setup-rust-toolchain@v1
with:
profile: minimal # Only install what's necessary

- name: Publish to crates.io
env:
CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} # Use the secret token
run: cargo publish --token $CARGO_REGISTRY_TOKEN
# publish-crate:
# needs: [release] # This job depends on the successful completion of the 'release' job
# runs-on: ubuntu-latest
# if: startsWith(github.ref, 'refs/tags/') # Only runs this job if the push is a tag
# steps:
# - uses: actions/checkout@v3
#
# - name: Setup Rust
# uses: actions-rust-lang/setup-rust-toolchain@v1
# with:
# profile: minimal # Only install what's necessary
#
# - name: Publish to crates.io
# env:
# CARGO_REGISTRY_TOKEN: ${{ secrets.CRATES_IO_TOKEN }} # Use the secret token
# run: cargo publish --token $CARGO_REGISTRY_TOKEN

0 comments on commit 6b30ff8

Please sign in to comment.