Compare commits

...
8 Commits
Author SHA1 Message Date
Skyxim 9cc14b80b9 chore: workflow 2022-05-01 13:25:04 +08:00
Skyxim 85410e1f25 chore: workflow 2022-05-01 13:22:38 +08:00
Skyxim 6fce893428 chore: workflow 2022-05-01 13:22:02 +08:00
Skyxim 2dd7a87f4c chore: modify makefile 2022-05-01 13:22:02 +08:00
Skyxim c6d1b7aff4 chore: modify github workflows 2022-05-01 13:22:02 +08:00
Skyxim dc0dc1cfe1 chore: modify github workflows 2022-05-01 13:22:02 +08:00
Skyxim e0bec5ad2b chore: modify github workflows 2022-05-01 13:22:02 +08:00
Skyxim d7e63975b9 Update prerelease.yml 2022-05-01 12:14:36 +08:00
3 changed files with 11 additions and 16 deletions
+1 -1
View File
@@ -1,4 +1,4 @@
name: prerelease-test
name: prerelease
on:
push:
branches:
+1 -15
View File
@@ -1,4 +1,4 @@
name: release-test
name: release
on:
push:
tags:
@@ -35,20 +35,6 @@ jobs:
BINDIR: bin
run: make -j releases
- name: Delete current release assets
uses: andreaswilli/delete-release-assets-action@v2.0.0
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
tag: beta
deleteOnlyFromDrafts: false
- name: Tag Repo
uses: richardsimko/update-tag@v1
with:
tag_name: beta
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload Alpha
uses: softprops/action-gh-release@v1
if: ${{ success() && startsWith(github.ref, 'refs/tags/')}}
+9
View File
@@ -1,7 +1,16 @@
NAME=Clash.Meta
BINDIR=bin
BRANCH=$(shell git rev-parse --abbrev-ref HEAD)
ifeq ($(BRANCH),Alpha)
VERSION=alpha-$(shell git rev-parse --short HEAD)
else ifeq ($(BRANCH),Beta)
VERSION=beta-$(shell git rev-parse --short HEAD)
else ifeq ($(BRANCH),Meta)
VERSION=$(shell git describe --tags)
else
VERSION=unknown
endif
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)" \