From 9f13b9fdf6c451a892aeeafcebf23ad38c74cf5f Mon Sep 17 00:00:00 2001 From: Ryan D McGuire Date: Mon, 16 Dec 2024 16:18:51 -0500 Subject: [PATCH] Add go package upload --- .gitea/workflows/ci.yml | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index e76a23a..3aaeb04 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -44,10 +44,8 @@ jobs: - name: Generate and Upload Package to Go Registry run: | - mkdir -v /tmp/.gopath - echo "GOPATH ( go env GOPATH ) GOMODCACHE $( go env GOMODCACHE )" - stat $( go env GOMODCACHE ) echo "Generating package archive for ${GO_MOD_PATH}@${{ github.ref_name }}" + go mod tidy -v go mod download --json ${GO_MOD_PATH}@${{ github.ref_name }} > package.json if [[ $? -ne 0 ]]; then echo "Failed to generage go package archive for ${GO_MOD_PATH}@${{ github.ref_name }}"