Skip to content

Commit a17f925

Browse files
committed
update release upload
1 parent 5d5c681 commit a17f925

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

.github/workflows/main.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -31,10 +31,10 @@ jobs:
3131
- run: ./dist/ncp-${{ matrix.name }} --help
3232
- id: vars
3333
run: echo "sha_short=$(git rev-parse --short HEAD)" >> $GITHUB_OUTPUT
34-
- uses: softprops/action-gh-release@v2
35-
if: startsWith(github.ref, 'refs/tags/')
36-
with:
37-
files: dist/*
38-
tag_name: ${{ steps.vars.outputs.sha_short }}
39-
name: Release ${{ steps.vars.outputs.sha_short }}
40-
token: ${{ secrets.GITHUB_TOKEN }}
34+
- run: |
35+
cd dist
36+
zip -r ncp-${{ matrix.name }}-${{ steps.vars.outputs.sha_short }}.zip ncp-${{ matrix.name }}
37+
gh release upload ${{ steps.vars.outputs.sha_short }} ncp-${{ matrix.name }}-${{ steps.vars.outputs.sha_short }}.zip
38+
env:
39+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
40+
shell: bash

0 commit comments

Comments
 (0)