Skip to content

Commit 3dca137

Browse files
committed
ops: fix build-and-relase github workflow
1 parent 21569d7 commit 3dca137

File tree

1 file changed

+6
-19
lines changed

1 file changed

+6
-19
lines changed

.github/workflows/build-and-release.yml

Lines changed: 6 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -27,37 +27,24 @@ jobs:
2727
make build
2828
2929
- name: Upload binary artifact
30-
uses: actions/upload-artifact@v3
30+
uses: actions/upload-artifact@v4
3131
with:
3232
name: sps
33-
path: ./build/sps
33+
path: build/sps
3434

3535
release:
3636
needs: build
3737
runs-on: ubuntu-latest
3838
steps:
3939
- name: Download binary artifact
40-
uses: actions/download-artifact@v3
40+
uses: actions/download-artifact@v4
4141
with:
4242
name: sps
43+
path: ./dist
4344

4445
- name: Create GitHub Release
45-
id: create_release
46-
uses: actions/create-release@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
46+
uses: softprops/action-gh-release@v2
4947
with:
50-
tag_name: ${{ github.ref_name }}
51-
release_name: Release ${{ github.ref_name }}
52-
draft: false
53-
prerelease: false
54-
55-
- name: Upload binary to Release
56-
uses: actions/upload-release-asset@v1
48+
files: ./dist/sps
5749
env:
5850
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
with:
60-
upload_url: ${{ steps.create_release.outputs.upload_url }}
61-
asset_path: ./sps
62-
asset_name: sps
63-
asset_content_type: application/octet-stream

0 commit comments

Comments
 (0)