Skip to content

Commit 76122b9

Browse files
authored
updated to maintained release action (#37)
1 parent 8da6c37 commit 76122b9

File tree

1 file changed

+9
-40
lines changed

1 file changed

+9
-40
lines changed

.github/workflows/release.yml

+9-40
Original file line numberDiff line numberDiff line change
@@ -27,47 +27,16 @@ jobs:
2727
run: |
2828
GOOS=linux GOARCH=amd64 go build -v ./cmd/certyaml && tar zcvf certyaml-linux-amd64.tar.gz certyaml && rm certyaml
2929
GOOS=darwin GOARCH=amd64 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-amd64.tar.gz certyaml && rm certyaml
30+
GOOS=darwin GOARCH=arm64 go build -v ./cmd/certyaml && tar zcvf certyaml-darwin-arm64.tar.gz certyaml && rm certyaml
3031
GOOS=windows GOARCH=amd64 go build -v ./cmd/certyaml && zip certyaml-windows-amd64.zip certyaml.exe && rm certyaml.exe
3132
32-
# https://github.com/actions/create-release
33+
# https://github.com/softprops/action-gh-release
3334
- name: Create Release
34-
id: create_release
35-
uses: actions/create-release@v1
36-
env:
37-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
35+
uses: softprops/action-gh-release@v1
3836
with:
39-
tag_name: ${{ github.ref }}
40-
release_name: ${{ github.ref }}
41-
draft: false
42-
prerelease: false
43-
44-
# https://github.com/actions/upload-release-asset
45-
- name: Upload linux binary
46-
uses: actions/upload-release-asset@v1
47-
env:
48-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
49-
with:
50-
upload_url: ${{ steps.create_release.outputs.upload_url }}
51-
asset_path: certyaml-linux-amd64.tar.gz
52-
asset_name: certyaml-linux-amd64.tar.gz
53-
asset_content_type: application/octet-stream
54-
55-
- name: Upload macos binary
56-
uses: actions/upload-release-asset@v1
57-
env:
58-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
59-
with:
60-
upload_url: ${{ steps.create_release.outputs.upload_url }}
61-
asset_path: certyaml-darwin-amd64.tar.gz
62-
asset_name: certyaml-darwin-amd64.tar.gz
63-
asset_content_type: application/octet-stream
64-
65-
- name: Upload windows binary
66-
uses: actions/upload-release-asset@v1
67-
env:
68-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
69-
with:
70-
upload_url: ${{ steps.create_release.outputs.upload_url }}
71-
asset_path: certyaml-windows-amd64.zip
72-
asset_name: certyaml-windows-amd64.zip
73-
asset_content_type: application/octet-stream
37+
draft: true
38+
files: |
39+
certyaml-linux-amd64.tar.gz
40+
certyaml-darwin-amd64.tar.gz
41+
certyaml-darwin-arm64.tar.gz
42+
certyaml-windows-amd64.zip

0 commit comments

Comments
 (0)