Skip to content

Commit 5ee680e

Browse files
committed
can't refer to env in job if cond
1 parent 04bcfe1 commit 5ee680e

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

.github/workflows/main.yml

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

108108
publish-crate:
109-
if: startsWith(github.ref, 'refs/tags/') && env.CRATES_TOKEN
109+
if: startsWith(github.ref, 'refs/tags/')
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: env.CRATES_TOKEN
117118
shell: bash
118119
run: cargo publish --token ${{ env.CRATES_TOKEN }}
119120
env:

0 commit comments

Comments
 (0)