Skip to content

Merge pull request #13 from vincenthsh/release-please--branches--main #14

Merge pull request #13 from vincenthsh/release-please--branches--main

Merge pull request #13 from vincenthsh/release-please--branches--main #14

Workflow file for this run

on:
push:
branches:
- main
name: release-please
jobs:
release-please:
runs-on: ubuntu-latest
steps:
- name: release please
uses: google-github-actions/[email protected]
id: release
with:
# https://github.com/google-github-actions/release-please-action#github-credentials
token: ${{ secrets.VINCENT_PAT }}
- uses: actions/checkout@v4
# we need to fetch all history and tags
# so we build the proper version
with:
fetch-depth: 0
if: ${{ steps.release.outputs.release_created }}
- uses: actions/setup-go@v5
with:
go-version-file: go.mod
if: ${{ steps.release.outputs.release_created }}
- name: Get main.go
run: make main.go
if: ${{ steps.release.outputs.release_created }}
- name: Run GoReleaser
uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --rm-dist
env:
GITHUB_TOKEN: ${{ secrets.VINCENT_PAT }}
if: ${{ steps.release.outputs.release_created }}