refactor(openapi): 允许 Operation.Response 的 resp 为 nil #71
Workflow file for this run
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: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
- '!v*-alpha' | |
- '!v*-beta' | |
jobs: | |
release: | |
name: Release | |
runs-on: ubuntu-latest | |
steps: | |
- name: setup Go | |
uses: actions/setup-go@v5 | |
with: | |
go-version: 1.23.x | |
id: go | |
- name: Check out code into the Go module directory | |
uses: actions/checkout@v4 | |
- name: release | |
uses: goreleaser/goreleaser-action@v6 | |
with: | |
workdir: ./cmd/web | |
version: '~> v2' | |
args: release | |
env: | |
# 如果需要操作其它仓库,比如将 brew 写入其它仓库中, | |
# 则不能使用默认的 GITHUB_TOKEN,需要自行创建。 | |
GITHUB_TOKEN: ${{ secrets.HOMEBREW }} |