Skip to content

Commit 847dcee

Browse files
authored
Use v3 of actions/download-artifact (#1325)
#1323 used v4 of the download artifact action, which is incompatible with uploads using v3 of the upload action. See [FAQ](https://github.com/actions/toolkit/blob/main/packages/artifact/docs/faq.md#which-versions-of-the-artifacts-packages-are-compatible) for compatibility matrix. This resulted in the release step [failing](https://github.com/pulumi/pulumi-awsx/actions/runs/9620941727/job/26540766895#step:4:36) to download the uploaded artifact. This PR also updates the pre-release workflow while we're at it. Note: I've opted to use v3 of the download action to maintain consistency with the rest of our GHA workflows. We can update to v4 in the future.
1 parent a4740be commit 847dcee

File tree

2 files changed

+24
-5
lines changed

2 files changed

+24
-5
lines changed

.github/workflows/pre-release.yml

Lines changed: 22 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -346,9 +346,28 @@ jobs:
346346
uses: jaxxstorm/[email protected]
347347
with:
348348
repo: pulumi/pulumictl
349-
- name: Add SDK version tag
350-
run: git tag "sdk/v$PROVIDER_VERSION" && git push origin
351-
"sdk/v$PROVIDER_VERSION"
349+
- name: Download Go SDK
350+
uses: actions/download-artifact@v3
351+
with:
352+
name: go-sdk.tar.gz
353+
path: ${{ github.workspace }}/sdk/
354+
- name: Uncompress Go SDK
355+
run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C
356+
${{ github.workspace }}/sdk/go
357+
shell: bash
358+
- uses: pulumi/publish-go-sdk-action@v1
359+
with:
360+
repository: ${{ github.repository }}
361+
base-ref: ${{ github.sha }}
362+
source: sdk
363+
path: sdk
364+
version: ${{ needs.version.outputs.version }}
365+
additive: false
366+
# Avoid including other language SDKs & artifacts in the commit
367+
files: |
368+
go.*
369+
go/**
370+
!*.tar.gz
352371
name: prerelease
353372
on:
354373
push:

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -345,10 +345,10 @@ jobs:
345345
with:
346346
repo: pulumi/pulumictl
347347
- name: Download Go SDK
348-
uses: actions/download-artifact@v4
348+
uses: actions/download-artifact@v3
349349
with:
350350
name: go-sdk.tar.gz
351-
path: $${{ github.workspace }}/sdk/
351+
path: ${{ github.workspace }}/sdk/
352352
- name: Uncompress Go SDK
353353
run: tar -zxf ${{ github.workspace }}/sdk/go.tar.gz -C
354354
${{ github.workspace }}/sdk/go

0 commit comments

Comments
 (0)