Skip to content

Prepare release v0.3.2 #13

Prepare release v0.3.2

Prepare release v0.3.2 #13

Workflow file for this run

name: Release
on:
pull_request_target:
types:
- closed
paths:
- 'plugin.yaml'
permissions:
contents: write
jobs:
Release:
if: (github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/'))
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # v3
with:
fetch-depth: 0
- name: Fetch Version
run: echo PLUGIN_VERSION=v$(cat plugin.yaml | grep "version" | cut -d '"' -f 2) >> "$GITHUB_ENV"
- name: Set Golang
uses: actions/setup-go@fac708d6674e30b6ba41289acaab6d4b75aa0753 # v4.0.1
with:
go-version: 1.21
- name: Build
run: make build
- name: Create tag
run: git tag $PLUGIN_VERSION
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@336e29918d653399e599bfca99fadc1d7ffbc9f7 # v4.3.0
with:
distribution: goreleaser
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}