Skip to content

fix: install signpath in release workflow #19

fix: install signpath in release workflow

fix: install signpath in release workflow #19

Workflow file for this run

# Terraform Provider release workflow.
name: Release
# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
push:
tags:
- 'v*'
# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3.5.3
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0
- uses: actions/setup-go@93397bea11091df50f3d7e59dc26a7711a8bcfbe # v4.1.0
with:
go-version-file: 'go.mod'
cache: true
- name: Import GPG key
uses: crazy-max/ghaction-import-gpg@72b6676b71ab476b77e676928516f6982eef7a41 # v5.3.0
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- name: Install SignPath Powershell module
shell: pwsh
run: Install-Module -Name SignPath -Confirm:$False -Force
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
with:
args: release --clean
version: 1.26.2
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
SP_CI_USER_TOKEN: ${{ secrets.SP_CI_USER_TOKEN }}
SP_ORGANIZATION_ID: ${{ secrets.SP_ORGANIZATION_ID }}
SP_PROJECT: ${{ secrets.SP_PROJECT }}
SWO_ISSUER_ID: ${{ secrets.SWO_ISSUER_ID }}
SWO_KEY_ID: ${{ secrets.SWO_KEY_ID }}
SWO_MAC_P8_FILE: ${{ secrets.SWO_MAC_P8_FILE }}
SWO_MAC_P12_CERT: ${{ secrets.SWO_MAC_P12_CERT }}
SWO_P12_PASSWORD: ${{ secrets.SWO_P12_PASSWORD }}