Skip to content

Commit fd6b6ae

Browse files
zakcutnermarmeladema
authored andcommitted
Improve publish action configuration
1 parent a1e311a commit fd6b6ae

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

.github/workflows/publish.yml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
name: Publish
2-
on: release
2+
on:
3+
release:
4+
types: [released]
35
jobs:
46
cargo:
57
name: Cargo
@@ -9,6 +11,7 @@ jobs:
911
- uses: actions-rs/toolchain@v1
1012
with:
1113
default: true
12-
- env: CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
14+
- env:
15+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
1316
run: cargo login "$CARGO_REGISTRY_TOKEN"
1417
- run: cargo publish

0 commit comments

Comments
 (0)