Add go package upload

This commit is contained in:
Ryan McGuire 2024-12-16 16:28:20 -05:00
parent b01c73fab1
commit a69963dbf3

View File

@ -44,11 +44,8 @@ jobs:
- name: Generate and Upload Package to Go Registry
run: |
echo "Generating package archive for ${GO_MOD_PATH}@${{ github.ref_name }}"
go mod tidy -v
go list --json
echo "Generating archive, GOPRIVATE: $GOPRIVATE"
go mod download --json ${GO_MOD_PATH}@${{ github.ref_name }} > package.json
go mod download -x --json ${GO_MOD_PATH}@${{ github.ref_name }} 2>&1
if [[ $? -ne 0 ]]; then
echo "Failed to generage go package archive for ${GO_MOD_PATH}@${{ github.ref_name }}"
exit 1