Skip to content

wip

wip #12

Workflow file for this run

name: Release
on:
push:
branches: [ switch-apple-codesign ]
tags:
- "v*.*.*"
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Set up Go
uses: actions/setup-go@v5
with:
go-version-file: go.mod
- name: Setup rcodesign
uses: indygreg/apple-code-sign-action@v1
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v6
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
- name: Decrypt Secrets
env:
SECRETS_PASSWORD: ${{ secrets.SECRETS_PASSWORD }}
run: |
gpg --quiet --batch --yes --decrypt --passphrase="$SECRETS_PASSWORD" \
--output .github/secrets/hcloud_cli.p12 .github/secrets/hcloud_cli.p12.gpg
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --snapshot --clean --skip=validate
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
APPLE_P12_PASSWORD: ${{ secrets.APPLE_P12_PASSWORD }}