Skip to content

Commit

Permalink
Update CI.yml
Browse files Browse the repository at this point in the history
Make change to publish crate
  • Loading branch information
jinlow authored Mar 24, 2024
1 parent 4f90cca commit 83af90b
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions .github/workflows/CI.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ jobs:
release:
name: Release
runs-on: ubuntu-latest
#if: "startsWith(github.ref, 'refs/tags/')"
if: "startsWith(github.ref, 'refs/tags/')"
needs: [linux, windows, macos, sdist]
steps:
- uses: actions/download-artifact@v3
Expand All @@ -128,8 +128,8 @@ jobs:
toolchain: stable
- name: Run tests
run: cargo test --verbose
- if: "startsWith(github.ref, 'refs/tags/')"
name: Publish Crate
# - if: "startsWith(github.ref, 'refs/tags/')"
- name: Publish Crate
run: cargo publish --token ${CRATES_TOKEN} --allow-dirty
env:
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}
CRATES_TOKEN: ${{ secrets.CRATES_TOKEN }}

0 comments on commit 83af90b

Please sign in to comment.