Compare commits
1
Commits
69494f1460
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ef0c6f2313 |
@@ -0,0 +1,31 @@
|
|||||||
|
name: release
|
||||||
|
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
tags:
|
||||||
|
- '*'
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
release:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
fetch-depth: 0
|
||||||
|
- name: setup go
|
||||||
|
uses: https://github.com/actions/setup-go@v4
|
||||||
|
with:
|
||||||
|
go-version: '>=1.22.0'
|
||||||
|
- name: release-build
|
||||||
|
run: go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/edas-${{ github.ref_name }}-linux-amd64
|
||||||
|
- name: release-build-windows
|
||||||
|
run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/edas-${{ github.ref_name }}-windows-amd64.exe
|
||||||
|
- name: release-build-darwin
|
||||||
|
run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/edas-${{ github.ref_name }}-darwin-amd64
|
||||||
|
- name: Use Go Action
|
||||||
|
id: use-go-action
|
||||||
|
uses: https://gitea.com/actions/release-action@main
|
||||||
|
with:
|
||||||
|
files: |-
|
||||||
|
bin/**
|
||||||
|
api_key: '${{secrets.GITHUB_TOKEN}}'
|
||||||
Reference in New Issue
Block a user