Skip to content

Commit d0a5b39

Browse files
committed
update actions workflow
1 parent 47aa3d1 commit d0a5b39

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

.github/workflows/main.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -106,15 +106,14 @@ jobs:
106106
publish_dir: ./target/doc
107107

108108
publish-crate:
109-
if: startsWith(github.ref, 'refs/tags/')
109+
if: startsWith(github.ref, 'refs/tags/') && env.CRATES_TOKEN
110110
needs: [test]
111111
runs-on: ubuntu-latest
112112
steps:
113113
- name: Set up Rust
114114
uses: hecrj/setup-rust-action@v1
115115
- uses: actions/checkout@v1
116116
- name: Publish
117-
if: startsWith(github.ref, 'refs/tags/') && env.CRATES_TOKEN
118117
shell: bash
119118
run: cargo publish --token ${{ env.CRATES_TOKEN }}
120119
env:

0 commit comments

Comments
 (0)