Skip to content

Bump getsentry/action-release from 1.9.0 to 1.10.1 (#635) #76

Bump getsentry/action-release from 1.9.0 to 1.10.1 (#635)

Bump getsentry/action-release from 1.9.0 to 1.10.1 (#635) #76

Workflow file for this run

name: release
on:
push:
tags:
- "v*"
jobs:
goreleaser:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4.2.2
- name: Unshallow
run: git fetch --prune --unshallow
- uses: actions/setup-go@v5.3.0
with:
go-version-file: go.mod
cache: true
- name: Import GPG key
id: import_gpg
uses: crazy-max/ghaction-import-gpg@cb9bde2e2525e640591a934b1fd28eef1dcaf5e5
with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }}
- id: generate_token
uses: tibdex/github-app-token@3beb63f4bd073e61482598c45c71c1019b59b73a
with:
app_id: ${{ secrets.GH_APP_ID }}
private_key: ${{ secrets.GH_APP_PRIVATE_KEY }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@9ed2f89a662bf1735a48bc8557fd212fa902bebf
with:
version: latest
args: release --clean
env:
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
GITHUB_TOKEN: ${{ steps.generate_token.outputs.token }}
- name: Extract new version
id: version
run: |
cd dist/terraform-provider-authentik_linux_amd64_v1/
VERSION=$(./$(ls) -version)
echo "##[set-output name=version]$VERSION"
- name: Create a Sentry.io release
uses: getsentry/action-release@eee172e87c159b3418d45fa2f2283f5a9fc7bd6a
env:
SENTRY_AUTH_TOKEN: ${{ secrets.SENTRY_AUTH_TOKEN }}
SENTRY_ORG: authentik-security-inc
SENTRY_PROJECT: terraform-provider-authentik
with:
version: terraform-provider-authentik@${{ steps.version.outputs.version }}