From a9c23ec9156a6e4303abd86addeca46d888be403 Mon Sep 17 00:00:00 2001 From: Daniel Bradley Date: Thu, 9 May 2024 14:59:45 +0100 Subject: [PATCH] Download & restore Go SDK before pushing - Ensure we have the SDK with the latest version number included before publishing. --- .../bridged-provider/.github/workflows/release.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml index 93f9a4881..0eb4de2e7 100644 --- a/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml +++ b/provider-ci/internal/pkg/templates/bridged-provider/.github/workflows/release.yml @@ -150,6 +150,15 @@ jobs: - id: version uses: pulumi/provider-version-action@v1 #{{- if .Config.publish.goSdk.usePush }}# + - name: Download Go SDK + uses: actions/download-artifact@v4 + with: + name: go-sdk.tar.gz + path: ${{ github.workspace }}/sdk/ + - name: Uncompress Go SDK + run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C + ${{ github.workspace }}/sdk/go + shell: bash - uses: pulumi/publish-go-sdk-action@v1 with: repository: #{{ .Config.publish.goSdk.repository }}#