diff --git a/.github/workflows/pre-release.yml b/.github/workflows/pre-release.yml index f0b2b61c3..d82534d2f 100644 --- a/.github/workflows/pre-release.yml +++ b/.github/workflows/pre-release.yml @@ -346,9 +346,28 @@ jobs: uses: jaxxstorm/action-install-gh-release@v1.10.0 with: repo: pulumi/pulumictl - - name: Add SDK version tag - run: git tag "sdk/v$PROVIDER_VERSION" && git push origin - "sdk/v$PROVIDER_VERSION" + - name: Download Go SDK + uses: actions/download-artifact@v3 + 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: ${{ github.repository }} + base-ref: ${{ github.sha }} + source: sdk + path: sdk + version: ${{ needs.version.outputs.version }} + additive: false + # Avoid including other language SDKs & artifacts in the commit + files: | + go.* + go/** + !*.tar.gz name: prerelease on: push: diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index cf21817ab..cb9f19692 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -345,10 +345,10 @@ jobs: with: repo: pulumi/pulumictl - name: Download Go SDK - uses: actions/download-artifact@v4 + uses: actions/download-artifact@v3 with: name: go-sdk.tar.gz - path: $${{ github.workspace }}/sdk/ + path: ${{ github.workspace }}/sdk/ - name: Uncompress Go SDK run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C ${{ github.workspace }}/sdk/go