Skip to content

Merge pull request #48 from jkawamoto/hotfix/v0.7.2 #4

Merge pull request #48 from jkawamoto/hotfix/v0.7.2

Merge pull request #48 from jkawamoto/hotfix/v0.7.2 #4

Workflow file for this run

name: Release a new version
on:
push:
tags:
- "v*.*.*"
permissions:
contents: write
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
with:
go-version: ">=1.20"
- name: Run tests
run: go test -v ./...
- uses: goreleaser/goreleaser-action@v5
with:
version: latest
args: release --clean
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
HOMEBREW_TAP_GITHUB_TOKEN: ${{ secrets.HOMEBREW_TAP_GITHUB_TOKEN }}
merge:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
ref: develop
- name: Merge the new version into develop
run: |
git config user.name github-actions
git config user.email [email protected]
git fetch --tags origin
git merge ${REF##*/}
git push
env:
REF: ${{ github.event.push.ref }}