Skip to content

Commit 7967f79

Browse files
committed
Use softprops/action-gh-release@v1 for publish
1 parent 3bd0f59 commit 7967f79

File tree

1 file changed

+4
-16
lines changed

1 file changed

+4
-16
lines changed

.github/workflows/publish.yml

Lines changed: 4 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -19,20 +19,8 @@ jobs:
1919
run: |
2020
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 go build -o imago-linux-amd64
2121
CGO_ENABLED=0 GOOS=darwin GOARCH=amd64 go build -o imago-darwin-amd64
22-
- uses: actions/upload-release-asset@v1
23-
if: >-
24-
github.event_name == 'release'
25-
env:
26-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
22+
- uses: softprops/action-gh-release@v1
2723
with:
28-
upload_url: ${{ github.event.release.upload_url }}
29-
asset_path: imago-linux-amd64
30-
- uses: actions/upload-release-asset@v1
31-
if: >-
32-
github.event_name == 'release'
33-
env:
34-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35-
with:
36-
upload_url: ${{ github.event.release.upload_url }}
37-
asset_path: imago-darwin-amd64
38-
24+
files:
25+
- imago-linux-amd64
26+
- imago-darwin-amd64

0 commit comments

Comments
 (0)