👷 Git Tag

This commit is contained in:
徐晓伟 2023-11-27 09:56:35 +08:00
parent 30ddf0f1c5
commit 15c4e9164f
1 changed files with 7 additions and 4 deletions

View File

@ -65,10 +65,10 @@ jobs:
# 获取所有的代码历史记录,包括分支和标签
fetch-depth: 0
- name: Set up Go
uses: actions/setup-go@v4
with:
go-version: '1.20'
#- name: Set up Go
# uses: actions/setup-go@v4
# with:
# go-version: '1.20'
- name: Set Current Date ENV
run: |
@ -94,6 +94,9 @@ jobs:
- name: Go Run
run: go run main.go
- name: Git Tag
run: git tag v0.0.0-${{ env.YEAR_MONTH_DAY_HOUR_MINUTE }}
- name: Build
run: |
go build -o buildinfo/buildinfo buildinfo/buildinfo.go