feat: add version command

This commit is contained in:
loveuer
2024-03-29 11:30:37 +08:00
parent 5acad1096f
commit eb97f7b0a3
4 changed files with 14 additions and 0 deletions

View File

@ -16,6 +16,9 @@ jobs:
- name: checkout repository
uses: actions/checkout@v4
- name: fill version
run: sed -i -E "s/v[0-9]+.[0-9]+.[0-9]+/${{ github.ref_name }}/g" internal/opt/version.go
- name: install golang
uses: actions/setup-go@v4
with: