From 0836314c511a4ef4cd6ab3bc0da1141b389ebfef Mon Sep 17 00:00:00 2001 From: maximo tejeda Date: Wed, 13 Nov 2024 21:00:56 -0400 Subject: [PATCH] sixth iter --- .github/workflows/tags.yml | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/.github/workflows/tags.yml b/.github/workflows/tags.yml index 6006999..e07c1d3 100644 --- a/.github/workflows/tags.yml +++ b/.github/workflows/tags.yml @@ -14,16 +14,13 @@ jobs: go-version: '1.23.x' - name: install dependencies run: go mod tidy - - name: Build - 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 + - name: Build and push env: USERNAME: ${{ vars.USERNAME }} TOKEN: ${{ secrets.TOKEN }} TAG_VERSION: ${{ github.ref_name }} 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 +