[Chore] workflows
This commit is contained in:
parent
908ca20afa
commit
6596db7257
@ -44,18 +44,18 @@ jobs:
|
||||
- name: Tag Repo
|
||||
uses: richardsimko/update-tag@v1
|
||||
with:
|
||||
tag_name: alpha
|
||||
tag_name: v1.10.0
|
||||
env:
|
||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
||||
|
||||
- name: Upload Alpha
|
||||
- name: Upload Release
|
||||
uses: softprops/action-gh-release@v1
|
||||
if: ${{ env.GIT_BRANCH != 'Meta' && success() }}
|
||||
if: ${{ env.GIT_BRANCH == 'Meta' && success() }}
|
||||
with:
|
||||
tag: ${{ github.ref }}
|
||||
tag_name: alpha
|
||||
tag_name: v1.10.0
|
||||
files: bin/*
|
||||
prerelease: true
|
||||
prerelease: false
|
||||
|
||||
- name: send telegram message on push
|
||||
uses: appleboy/telegram-action@master
|
2
Makefile
2
Makefile
@ -1,7 +1,7 @@
|
||||
NAME=Clash.Meta
|
||||
BINDIR=bin
|
||||
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
|
||||
VERSION=alpha-$(shell git rev-parse --short HEAD)
|
||||
VERSION=$(shell git describe --tags || echo "unknown version")
|
||||
BUILDTIME=$(shell date -u)
|
||||
GOBUILD=CGO_ENABLED=0 go build -trimpath -ldflags '-X "github.com/Dreamacro/clash/constant.Version=$(VERSION)" \
|
||||
-X "github.com/Dreamacro/clash/constant.BuildTime=$(BUILDTIME)" \
|
||||
|
Reference in New Issue
Block a user