This commit is contained in:
parent
ee8c65fedd
commit
0836314c51
11
.github/workflows/tags.yml
vendored
11
.github/workflows/tags.yml
vendored
@ -14,16 +14,13 @@ jobs:
|
|||||||
go-version: '1.23.x'
|
go-version: '1.23.x'
|
||||||
- name: install dependencies
|
- name: install dependencies
|
||||||
run: go mod tidy
|
run: go mod tidy
|
||||||
- name: Build
|
- name: Build and push
|
||||||
env:
|
|
||||||
TAG_VERSION: ${{ github.ref_name }}
|
|
||||||
run: |
|
|
||||||
go build -v -o ./bin/ddnser-$TAG_VERSION ./cmd/...
|
|
||||||
zip -r ddnser-$TAG_VERSION ./bin/ddnser-$TAG_VERSION
|
|
||||||
- name: Push to gitea
|
|
||||||
env:
|
env:
|
||||||
USERNAME: ${{ vars.USERNAME }}
|
USERNAME: ${{ vars.USERNAME }}
|
||||||
TOKEN: ${{ secrets.TOKEN }}
|
TOKEN: ${{ secrets.TOKEN }}
|
||||||
TAG_VERSION: ${{ github.ref_name }}
|
TAG_VERSION: ${{ github.ref_name }}
|
||||||
run: |
|
run: |
|
||||||
|
go build -v -o ./bin/ddnser-$TAG_VERSION ./cmd/...
|
||||||
|
zip -r ddnser-$TAG_VERSION ./bin/ddnser-$TAG_VERSION
|
||||||
curl --user $USERNAME:$TOKEN --upload-file ./ddnser-$TAG_VERSION.zip http://10.0.0.171/api/packages/$USERNAME/go/upload
|
curl --user $USERNAME:$TOKEN --upload-file ./ddnser-$TAG_VERSION.zip http://10.0.0.171/api/packages/$USERNAME/go/upload
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user