Skip to content

Merge pull request #83 from chatwork/dependabot/go_modules/github.com… #7

Merge pull request #83 from chatwork/dependabot/go_modules/github.com…

Merge pull request #83 from chatwork/dependabot/go_modules/github.com… #7

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
permissions:
contents: write
packages: write
jobs:
setup:
runs-on: ubuntu-latest
outputs:
release-go-version: ${{ steps.set.outputs.release-go-version }}
steps:
- uses: actions/checkout@v4
- uses: actions/setup-go@v5
- id: set
run: go run ./tools/setghaoutputs | tee -a "$GITHUB_OUTPUT"
goreleaser:
needs: setup
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
- uses: actions/setup-go@v5
with:
go-version: ${{ needs.setup.outputs.release-go-version }}
- uses: docker/login-action@v3
with:
registry: ghcr.io
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}
- uses: goreleaser/goreleaser-action@v6
with:
args: release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}