bump to v0.3.0 #47
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Release | |
on: | |
push: | |
tags: | |
- "*" | |
jobs: | |
goreleaser: | |
permissions: | |
# grant the github token the ability to modify release tags | |
contents: write | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
# fetch all history for goreleaser to work correctly | |
# https://goreleaser.com/ci/actions/#workflow | |
fetch-depth: 0 | |
- name: Setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: stable | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v5 | |
with: | |
version: latest | |
args: release --clean ${{ github.ref == 'refs/heads/main' && '--snapshot' || '' }} | |
env: | |
GITHUB_TOKEN: ${{ github.token }} | |
- name: Release Plugin | |
uses: rajatjindal/spin-plugin-releaser@v1 | |
with: | |
github_token: ${{ github.token }} | |
upload_checksums: true | |
template_file: contrib/spin-plugin.json.tmpl |