covermyass/.github/workflows/release.yml

38 lines
858 B
YAML
Raw Normal View History

2022-11-17 14:57:38 +00:00
name: release
on:
push:
tags:
- '*'
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3.0.0
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v3.2.0
with:
2022-11-20 12:58:32 +00:00
go-version: 1.18.4
2022-11-17 14:57:38 +00:00
2022-12-05 08:10:37 +00:00
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.GPG_PASSPHRASE }}
2022-11-17 14:57:38 +00:00
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v3.0.0
with:
version: v1.12.3
args: release --rm-dist
env:
2022-12-05 08:10:37 +00:00
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2022-12-05 08:37:22 +00:00
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}