Skip to content

Commit 3e22785

Browse files
committed
Refactor publish workflow for improved readability and maintainability
1 parent 4bfe632 commit 3e22785

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,10 @@ jobs:
2121
- uses: dtolnay/rust-toolchain@stable
2222
- uses: Swatinem/rust-cache@v2
2323
- name: Publish workspace
24-
run: cargo publish ${DRY} --workspace --token ${{ secrets.CRATES_TOKEN }} --no-default-features --features runtime-actix-rustls
25-
env:
26-
DRY: ${{ startsWith(github.ref, 'refs/tags/v') && '--dry-run' || '' }}
24+
run: |
25+
cargo publish \
26+
${{ startsWith(github.ref, 'refs/tags/v') && '--dry-run' || '' }} \
27+
--workspace \
28+
--token ${{ secrets.CRATES_TOKEN }} \
29+
--no-default-features \
30+
--features runtime-actix-rustls

0 commit comments

Comments
 (0)