Browse Source

Use actions instead of drone

main
Lunny Xiao 2 years ago
parent
commit
0b478d9235
No known key found for this signature in database GPG Key ID: C3B7C91B632F738A
  1. 6
      .gitea/workflows/release-tag.yml
  2. 2
      README.md
  3. 2
      README_CN.md

6
.gitea/workflows/release-tag.yml

@ -17,11 +17,11 @@ jobs:
with: with:
go-version: '>=1.20.1' go-version: '>=1.20.1'
- name: release-build - name: release-build
run: go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-linux-amd64
run: go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-linux-amd64
- name: release-build-windows - name: release-build-windows
run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-windows-amd64.exe
run: GOOS=windows GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-windows-amd64.exe
- name: release-build-darwin - name: release-build-darwin
run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${DRONE_TAG}'" -o bin/reverse-${DRONE_TAG}-darwin-amd64
run: GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'main.Version=${{ github.ref_name }}'" -o bin/reverse-${{ github.ref_name }}-darwin-amd64
- name: Use Go Action - name: Use Go Action
id: use-go-action id: use-go-action
uses: actions/release-action@main uses: actions/release-action@main

2
README.md

@ -1,6 +1,6 @@
[中文](README_CN.md) [中文](README_CN.md)
[![Build Status](https://drone.gitea.com/api/badges/xorm/reverse/status.svg)](https://drone.gitea.com/xorm/reverse) [![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse)
[![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse)
[![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse) [![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse)
# Reverse # Reverse

2
README_CN.md

@ -1,6 +1,6 @@
[English](README.md) [English](README.md)
[![Build Status](https://drone.gitea.com/api/badges/xorm/reverse/status.svg)](https://drone.gitea.com/xorm/reverse) [![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse)
[![](http://gocover.io/_badge/xorm.io/xorm)](https://gocover.io/xorm.io/reverse)
[![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse) [![](https://goreportcard.com/badge/xorm.io/reverse)](https://goreportcard.com/report/xorm.io/reverse)
# Reverse # Reverse

Loading…
Cancel
Save