Skip to content

Commit 7ae067e

Browse files
committed
fix release workflow
1 parent 39e0a50 commit 7ae067e

1 file changed

Lines changed: 22 additions & 3 deletions

File tree

.github/workflows/release.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,10 +46,29 @@ jobs:
4646
-trimpath \
4747
./cmd/filimo-plus-cli
4848
49-
- name: Upload binaries
49+
- name: Upload artifact
50+
uses: actions/upload-artifact@v4
51+
with:
52+
name: dist-${{ matrix.os }}-${{ matrix.arch }}
53+
path: dist/*
54+
55+
release:
56+
name: Create Release
57+
needs: build
58+
runs-on: ubuntu-latest
59+
60+
steps:
61+
- name: Download all build artifacts
62+
uses: actions/download-artifact@v4
63+
with:
64+
path: dist
65+
merge-multiple: true
66+
67+
- name: Publish GitHub Release
5068
uses: softprops/action-gh-release@v2
5169
with:
52-
files: |
53-
dist/filimo-plus-cli-${{ env.TAG_NAME }}-${{ matrix.os }}-${{ matrix.arch }}${{ env.EXT }}
70+
name: ${{ github.ref_name }}
71+
tag_name: ${{ github.ref_name }}
72+
files: dist/*
5473
env:
5574
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)