Skip to content

Merge pull request #111 from kestra-io/feat/api-token-support #25

Merge pull request #111 from kestra-io/feat/api-token-support

Merge pull request #111 from kestra-io/feat/api-token-support #25

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
goreleaser:
name: Release
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Unshallow
run: git fetch --prune --unshallow
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Import GPG
uses: crazy-max/ghaction-import-gpg@v6
id: import_gpg
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_ARMOR }}
passphrase: ${{ secrets.SONATYPE_GPG_PASSWORD }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
# Slack
- name: Slack notification
uses: 8398a7/action-slack@v3
if: always()
with:
status: ${{ job.status }}
job_name: Release
fields: repo,commit,action,ref,job,took
username: GitHub Actions
icon_emoji: ':github-actions:'
channel: 'C02DQ1A7JLR'
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}