chore(deps): update dependency speakeasy-api/speakeasy to v1.459.2 (#34) #28
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: Publish | |
on: | |
push: | |
paths: | |
- ".speakeasy/gen.lock" | |
branches: | |
- main | |
workflow_dispatch: | |
# 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 | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
# Allow goreleaser to access older tag information. | |
fetch-depth: 0 | |
- uses: actions/setup-go@v5 | |
with: | |
go-version-file: "go.mod" | |
- name: Read current version + create tag | |
run: | | |
TAG=$(yq '.management.releaseVersion' .speakeasy/gen.lock) | |
git config --global user.email "[email protected]" | |
git config --global user.name "kong-apiops[bot]" | |
git tag -a v$TAG -m "Release v$TAG" | |
git push origin v$TAG | |
- name: Run GoReleaser | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
args: release --clean | |
version: ~> v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |