mirror of
https://github.com/stulzq/azure-openai-proxy.git
synced 2026-01-16 13:04:37 +01:00
chore: update go releaser
This commit is contained in:
10
.github/workflows/ci.yml
vendored
10
.github/workflows/ci.yml
vendored
@@ -29,5 +29,15 @@ jobs:
|
||||
with:
|
||||
cache: false
|
||||
go-version-file: go.mod
|
||||
|
||||
- name: Verify gofmt
|
||||
run: |
|
||||
make fmt && git add azure util cmd constant &&
|
||||
git diff --cached --exit-code || (echo 'Please run "make fmt" to verify gofmt' && exit 1);
|
||||
- name: Verify govet
|
||||
run: |
|
||||
make vet && git add azure util cmd constant &&
|
||||
git diff --cached --exit-code || (echo 'Please run "make vet" to verify govet' && exit 1);
|
||||
|
||||
- name: Build
|
||||
run: make build
|
||||
25
.github/workflows/release.yml
vendored
25
.github/workflows/release.yml
vendored
@@ -55,4 +55,27 @@ jobs:
|
||||
ghcr.io/${{ github.repository }}:${{ env.TAG_NAME }}
|
||||
# https://docs.docker.com/build/cache/backends/gha/
|
||||
cache-from: type=gha
|
||||
cache-to: type=gha,mode=max
|
||||
cache-to: type=gha,mode=max
|
||||
|
||||
goreleaser:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@v3
|
||||
with:
|
||||
fetch-depth: 0
|
||||
- name: Fetch all tags
|
||||
run: git fetch --force --tags
|
||||
- name: Set up Go
|
||||
uses: actions/setup-go@v4
|
||||
with:
|
||||
cache: false
|
||||
go-version-file: go.mod
|
||||
- name: Run GoReleaser
|
||||
uses: goreleaser/goreleaser-action@v4
|
||||
with:
|
||||
distribution: goreleaser
|
||||
version: latest
|
||||
args: release --rm-dist
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
Reference in New Issue
Block a user