Skip to content

Sync monorepo state at "bump terraform provider version" (#60) #20

Sync monorepo state at "bump terraform provider version" (#60)

Sync monorepo state at "bump terraform provider version" (#60) #20

Workflow file for this run

name: Release
# This GitHub action creates a release when a tag that matches the pattern
# "v*" (e.g. v0.1.0) is created.
on:
push:
tags:
- 'v*'
# Releases need permissions to read and write the repository contents.
# GitHub considers creating releases and uploading assets as writing contents.
permissions:
contents: write
jobs:
goreleaser:
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Checkout source code
uses: actions/checkout@v4
with:
# Allow goreleaser to access older tag information.
fetch-depth: 0
- name: Setup golang
uses: actions/setup-go@v4
with:
go-version-file: go.mod
- name: Login to Docker Hub
uses: docker/login-action@343f7c4344506bcbf9b4de18042ae17996df046d # v3.0.0
with:
username: ${{ secrets.DOCKERHUB_USERNAME }}
password: ${{ secrets.DOCKERHUB_TOKEN }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@286f3b13b1b49da4ac219696163fb8c1c93e1200 # v6.0.0
with:
distribution: goreleaser
version: "v2.2.0"
args: release --clean --verbose
env:
# GitHub sets the GITHUB_TOKEN secret automatically.
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}