Skip to content

Commit 7259591

Browse files
committed
test release worflow #23
1 parent 80280fb commit 7259591

File tree

3 files changed

+26
-8
lines changed

3 files changed

+26
-8
lines changed

.github/workflows/go-build.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,3 +51,9 @@ jobs:
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 }}"

.github/workflows/release-workflow.yml

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff 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

.github/workflows/ssh-key-signer-server-docker.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -79,6 +79,10 @@ jobs:
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:

0 commit comments

Comments
 (0)