Skip to content

Commit fbc18a4

Browse files
committed
Fix release workflow to upload artifacts once
1 parent 2464a65 commit fbc18a4

File tree

1 file changed

+13
-3
lines changed

1 file changed

+13
-3
lines changed

.github/workflows/release.yml

Lines changed: 13 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,12 @@ jobs:
5252
else
5353
tar -czf "${dist}/cipherscope-${{ github.ref_name }}-${{ matrix.target }}.tar.gz" -C "target/${{ matrix.target }}/release" "${bin}"
5454
fi
55-
- name: upload release assets
56-
uses: softprops/action-gh-release@v2
55+
- name: upload artifacts
56+
uses: actions/upload-artifact@v4
5757
with:
58-
files: dist/*
58+
name: cipherscope-${{ matrix.target }}
59+
path: dist/*
60+
if-no-files-found: error
5961

6062
publish:
6163
needs: build-binaries
@@ -70,5 +72,13 @@ jobs:
7072
run: cargo publish --allow-dirty
7173
env:
7274
CARGO_REGISTRY_TOKEN: ${{ secrets.CARGO_REGISTRY_TOKEN }}
75+
- name: download artifacts
76+
uses: actions/download-artifact@v4
77+
with:
78+
path: dist
7379
- name: GitHub Release
7480
uses: softprops/action-gh-release@v2
81+
with:
82+
files: |
83+
dist/**/*.tar.gz
84+
dist/**/*.zip

0 commit comments

Comments
 (0)