Skip to content

Merge pull request #3 from Prateeknandle/packer-provisioner #2

Merge pull request #3 from Prateeknandle/packer-provisioner

Merge pull request #3 from Prateeknandle/packer-provisioner #2

Workflow file for this run

name: release
on:
push:
branches:
- '!*'
tags:
- v*.*.*
jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version-file: 'go.mod'
cache: true
- name: Describe plugin
id: plugin_describe
run: echo "api_version=$(go run . describe | jq -r '.api_version')" >> $GITHUB_OUTPUT
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
API_VERSION: ${{ steps.plugin_describe.outputs.api_version }}