bridge/.gitea/workflows/release.yaml
sati.ac 66da3c109f
All checks were successful
release-tag / release (push) Successful in 1m53s
ci: fix linux binary name
2023-07-03 00:56:58 +03:00

31 lines
747 B
YAML

name: release-tag
on:
push:
tags:
- '*'
env:
GOPATH: /go_path
GOCACHE: /go_cache
jobs:
release:
runs-on: ubuntu-latest
steps:
- uses: https://gitea.com/actions/checkout@v3
with:
fetch-depth: 0
- uses: https://gitea.com/actions/setup-go@v3
with:
go-version: '>=1.20.1'
- name: windows build
run: mkdir -p bin && GOOS=windows go build -o bin/bridge-windows-amd64.exe
- name: linux build
run: mkdir -p bin && GOOS=linux go build -o bin/bridge-linux-amd64
- name: publish release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
api_key: '${{secrets.RELEASE_TOKEN}}'