File tree Expand file tree Collapse file tree 3 files changed +26
-8
lines changed
Expand file tree Collapse file tree 3 files changed +26
-8
lines changed Original file line number Diff line number Diff line change 5151 name : ${{ inputs.artifact }}-${{ matrix.go-version }}
5252 path : ${{ inputs.service}}/bin/${{ inputs.artifact }}
5353 retention-days : 5
54+
55+ - name : set output for build files
56+ id : outputs
57+ run : |
58+ echo "::set-output name=binary_x64::${{ inputs.service}}/bin/${{ inputs.artifact }}"
59+ echo "::set-output name=binary_name::${{ inputs.artifact }}"
Original file line number Diff line number Diff line change @@ -99,13 +99,21 @@ jobs:
9999 runs-on : ubuntu-latest
100100
101101 steps :
102- - name : " create pre release"
103- uses : marvinpinto/action-automatic-releases@latest
102+ - name : Create release
103+ id : create_release
104+ uses : actions/create-release@v1
104105 with :
105- repo_token : " ${{ secrets.GITHUB_TOKEN }}"
106- automatic_release_tag : " latest"
106+ tag_name : ${{ github.ref }} # The tag that triggered the release
107+ release_name : Release ${{ github.ref }}
108+ draft : true
107109 prerelease : true
108- title : " Development Build"
109- files : |
110- LICENSE.txt
111- go-ssh-signer/bin/ssh-keysign
110+ env :
111+ GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
112+
113+ - name : upload amd64 go binary as release asset
114+ uses : actions/upload-release-asset@v1
115+ with :
116+ upload_url : ${{ steps.create_release.outputs.upload_url }}
117+ asset_path : ${{ needs.go-build.outputs.binary_x64 }} # Path to arm64 binary from reusable workflow's output
118+ asset_name : ${{ needs.go-build.outputs.binary_name }}-linux-amd64
119+ asset_content_type : application/octet-stream # Content type for binaries
Original file line number Diff line number Diff line change 7979 APP_NAME=${{ steps.extract_version.outputs.MAVEN_NAME }}
8080 APP_VERSION=${{ steps.extract_version.outputs.MAVEN_VERSION }}
8181
82+ - name : Install Cosign
83+ if : startsWith(github.ref, 'refs/tags/v')
84+ uses : sigstore/cosign-installer@v3.8.1
85+
8286 - name : sign the published docker image
8387 if : startsWith(github.ref, 'refs/tags/v')
8488 env :
You can’t perform that action at this time.
0 commit comments