Skip to content

Commit ffedae1

Browse files
committed
fix: ensure binaries are uploaded only for tagged releases and add manual artifact upload step
1 parent 252882a commit ffedae1

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

.github/workflows/rust-release.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@ jobs:
103103
run: bash -lc "${{ matrix.build }}"
104104

105105
- name: Upload Binaries
106+
if: startsWith(github.ref, 'refs/tags/')
106107
uses: taiki-e/upload-rust-binary-action@v1
107108
with:
108109
bin: ${{ matrix.bin }}
@@ -113,3 +114,10 @@ jobs:
113114
zip: windows
114115
token: ${{ secrets.GITHUB_TOKEN }}
115116

117+
- name: Upload Artifacts (manual run)
118+
if: ${{ !startsWith(github.ref, 'refs/tags/') }}
119+
uses: actions/upload-artifact@v4
120+
with:
121+
name: ${{ matrix.name }}
122+
path: artifacts/*
123+

0 commit comments

Comments
 (0)