Skip to content

chore(main): release 1.5.3 (#210) #19

chore(main): release 1.5.3 (#210)

chore(main): release 1.5.3 (#210) #19

Workflow file for this run

# Copyright (c) HashiCorp, Inc.
# SPDX-License-Identifier: MPL-2.0
# This GitHub action can publish assets for release when a tag is created.
# Currently its setup to run on any tag that matches the pattern "v*" (ie. v0.1.0).
name: Release
on:
push:
tags: [v*]
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
- 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: Describe plugin api_version
id: describe_plugin
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> "$GITHUB_OUTPUT"
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v6
with:
version: 2.x
args: release --clean --timeout 120m
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GPG_FINGERPRINT: ${{ steps.import_gpg.outputs.fingerprint }}
API_VERSION: ${{ steps.describe_plugin.outputs.api_version }}
notify-release:
needs: [release]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- run: echo "RELEASE_VERSION=${GITHUB_REF_NAME#v}" >> "$GITHUB_ENV"
- uses: hashicorp/integration-release-action@main
with:
integration_identifier: packer/hetznercloud/hcloud
release_version: ${{ env.RELEASE_VERSION }}
release_sha: ${{ github.sha }}
github_token: ${{ secrets.GITHUB_TOKEN }}