bridge/.gitea/workflows/release.yaml

31 lines
751 B
YAML
Raw Normal View History

2023-07-02 18:00:59 +02:00
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.exe
- name: publish release
uses: https://gitea.com/actions/release-action@main
with:
files: |-
bin/**
api_key: '${{secrets.RELEASE_TOKEN}}'