Add go package upload
This commit is contained in:
parent
b01c73fab1
commit
a69963dbf3
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user