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