Merge pull request #82 from k1LoW/funcformat #129
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: tagpr | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
tagpr: | |
runs-on: ubuntu-latest | |
outputs: | |
tagpr-tag: ${{ steps.run-tagpr.outputs.tag }} | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- id: run-tagpr | |
name: Run tagpr | |
uses: Songmu/tagpr@v1 | |
release: | |
needs: tagpr | |
if: needs.tagpr.outputs.tagpr-tag != '' | |
runs-on: macos-latest | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
steps: | |
- name: Check out source code | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Set up Go | |
uses: actions/setup-go@v4 | |
with: | |
go-version-file: go.mod | |
cache: true | |
- name: Setup | |
run: | | |
brew install goreleaser | |
- name: Release | |
run: | | |
make release |