Skip to content

Commit c4ac260

Browse files
authored
Update publish workflow to trigger on release events
1 parent 9be1233 commit c4ac260

File tree

1 file changed

+7
-4
lines changed

1 file changed

+7
-4
lines changed

.github/workflows/publish.yml

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
name: Publish
22
on:
3-
push:
4-
branches:
5-
- '**'
6-
- '!main'
3+
release:
4+
types: [published]
5+
env:
6+
NEW_VERSION: ${{ github.event.release.tag_name }}
7+
78

89
jobs:
910
Publish:
@@ -28,3 +29,5 @@ jobs:
2829

2930
- name: Publish dry run
3031
run: cargo publish --dry-run
32+
env:
33+
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}

0 commit comments

Comments
 (0)