-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
ad538fb
commit 64de8fc
Showing
1 changed file
with
38 additions
and
38 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,20 +4,20 @@ name: Release | |
# This GitHub action creates a release when manually run with signer details | ||
on: | ||
workflow_dispatch: | ||
inputs: | ||
CS_ID: | ||
description: "Code Signing ID" | ||
required: true | ||
type: string | ||
CS_API_TOKEN: | ||
description: "Code Signing API Token" | ||
required: true | ||
type: string | ||
# inputs: | ||
# CS_ID: | ||
# description: "Code Signing ID" | ||
# required: true | ||
# type: string | ||
# CS_API_TOKEN: | ||
# description: "Code Signing API Token" | ||
# required: true | ||
# type: string | ||
|
||
# Releases need permissions to read and write the repository contents. | ||
# GitHub considers creating releases and uploading assets as writing contents. | ||
permissions: | ||
contents: write | ||
# # Releases need permissions to read and write the repository contents. | ||
# # GitHub considers creating releases and uploading assets as writing contents. | ||
# permissions: | ||
# contents: write | ||
|
||
jobs: | ||
acceptance-tests: | ||
|
@@ -37,31 +37,31 @@ jobs: | |
- name: Run Acceptance Tests | ||
run: just acceptance-tests acceptance.env | ||
|
||
goreleaser: | ||
runs-on: Signer | ||
needs: acceptance-tests | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
# Allow goreleaser to access older tag information. | ||
fetch-depth: 0 | ||
# goreleaser: | ||
# runs-on: Signer | ||
# needs: acceptance-tests | ||
# steps: | ||
# - uses: actions/[email protected] | ||
# with: | ||
# # Allow goreleaser to access older tag information. | ||
# fetch-depth: 0 | ||
|
||
- name: Setup Just | ||
uses: extractions/setup-just@v2 | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# - name: Setup Just | ||
# uses: extractions/setup-just@v2 | ||
# env: | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- uses: actions/[email protected] | ||
with: | ||
go-version-file: 'go.mod' | ||
cache: true | ||
# - uses: actions/[email protected] | ||
# with: | ||
# go-version-file: 'go.mod' | ||
# cache: true | ||
|
||
- name: Run GoReleaser | ||
uses: goreleaser/[email protected] | ||
with: | ||
args: release --clean | ||
env: | ||
# GitHub sets the GITHUB_TOKEN secret automatically. | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
CS_ID: ${{ inputs.CS_ID }} | ||
CS_API_TOKEN: ${{ inputs.CS_API_TOKEN }} | ||
# - name: Run GoReleaser | ||
# uses: goreleaser/[email protected] | ||
# with: | ||
# args: release --clean | ||
# env: | ||
# # GitHub sets the GITHUB_TOKEN secret automatically. | ||
# GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# CS_ID: ${{ inputs.CS_ID }} | ||
# CS_API_TOKEN: ${{ inputs.CS_API_TOKEN }} |