Skip to content

Commit

Permalink
try this
Browse files Browse the repository at this point in the history
  • Loading branch information
1riatsila1 committed Dec 3, 2024
1 parent ad538fb commit 64de8fc
Showing 1 changed file with 38 additions and 38 deletions.
76 changes: 38 additions & 38 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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:
Expand All @@ -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 }}

0 comments on commit 64de8fc

Please sign in to comment.