This commit is contained in:
parent
0f1e287134
commit
5040e16bf9
24
.gitea/workflows/release.yaml
Normal file
24
.gitea/workflows/release.yaml
Normal file
@ -0,0 +1,24 @@
|
||||
name: Build Binaries
|
||||
run-name: ${{ gitea.actor }}
|
||||
on:
|
||||
push:
|
||||
tags: ["*"]
|
||||
|
||||
jobs:
|
||||
release:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- uses: actions/setup-go@v3
|
||||
with:
|
||||
go-version: '^1.21.6'
|
||||
- name: release-build
|
||||
run: go build -ldflags="-s -w" -o bin/aiproxy-linux-amd64 .
|
||||
- name: release-arm64
|
||||
run: GOARCH=arm64 go build -ldflags="-s -w" -o bin/aiproxy-linux-arm64 .
|
||||
- uses: https://gitea.com/actions/release-action@main
|
||||
with:
|
||||
files: |-
|
||||
bin/**
|
||||
api_key: '${{secrets.RELEASE_TOKEN}}'
|
||||
|
Loading…
x
Reference in New Issue
Block a user