diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 21a659a..e536180 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -55,7 +55,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -111,6 +112,13 @@ jobs: run: make provider - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar provider binaries run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ @@ -152,7 +160,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -209,6 +218,13 @@ jobs: run: make build_${{ matrix.language }} - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar SDK folder run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . @@ -247,7 +263,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -343,7 +360,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -379,11 +397,10 @@ jobs: role-session-name: ${{ env.PROVIDER }}@githubActions role-external-id: upload-pulumi-release role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} - - name: Set PreRelease Version - run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" - >> $GITHUB_ENV - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 + env: + GORELEASER_CURRENT_TAG: v${{ steps.version.outputs.version }} with: args: -p 3 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s version: latest @@ -403,7 +420,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -487,7 +505,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION diff --git a/.github/workflows/prerelease.yml b/.github/workflows/prerelease.yml index 4163e42..4197668 100644 --- a/.github/workflows/prerelease.yml +++ b/.github/workflows/prerelease.yml @@ -47,7 +47,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -103,6 +104,13 @@ jobs: run: make provider - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar provider binaries run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ @@ -144,7 +152,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -201,6 +210,13 @@ jobs: run: make build_${{ matrix.language }} - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar SDK folder run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . @@ -238,7 +254,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -334,7 +351,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -370,11 +388,10 @@ jobs: role-session-name: ${{ env.PROVIDER }}@githubActions role-external-id: upload-pulumi-release role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} - - name: Set PreRelease Version - run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" - >> $GITHUB_ENV - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 + env: + GORELEASER_CURRENT_TAG: v${{ steps.version.outputs.version }} with: args: -p 3 -f .goreleaser.prerelease.yml --clean --skip=validate --timeout 60m0s version: latest @@ -394,7 +411,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -478,7 +496,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index ac2f5b2..f1483b6 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -47,7 +47,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -103,6 +104,13 @@ jobs: run: make provider - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar provider binaries run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ @@ -144,7 +152,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -201,6 +210,13 @@ jobs: run: make build_${{ matrix.language }} - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar SDK folder run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . @@ -238,7 +254,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -334,7 +351,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -370,11 +388,10 @@ jobs: role-session-name: ${{ env.PROVIDER }}@githubActions role-external-id: upload-pulumi-release role-to-assume: ${{ secrets.AWS_UPLOAD_ROLE_ARN }} - - name: Set PreRelease Version - run: echo "GORELEASER_CURRENT_TAG=v$(pulumictl get version --language generic)" - >> $GITHUB_ENV - name: Run GoReleaser uses: goreleaser/goreleaser-action@v5 + env: + GORELEASER_CURRENT_TAG: v${{ steps.version.outputs.version }} with: args: -p 3 release --clean --timeout 60m0s version: latest @@ -394,7 +411,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -478,7 +496,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -522,26 +541,41 @@ jobs: arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository build-root-directory: ./sdk/java gradle-version: 7.4.1 - tag_sdk: + pubish_go_sdk: runs-on: ubuntu-latest - needs: publish_sdk + name: publish-go-sdk + needs: publish-sdk steps: - name: Checkout Repo uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION - - name: Install pulumictl - uses: jaxxstorm/action-install-gh-release@v1.11.0 + - name: Download go SDK + uses: actions/download-artifact@v4 with: - repo: pulumi/pulumictl - - name: Add SDK version tag - run: git tag sdk/v$(pulumictl get version --language generic) && git push origin - sdk/v$(pulumictl get version --language generic) - name: tag_sdk + 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 + - name: Publish Go SDK + uses: pulumi/publish-go-sdk-action@v1 + with: + repository: ${{ github.repository }} + base-ref: ${{ github.sha }} + source: sdk + path: sdk + version: ${{ steps.version.outputs.version }} + additive: false + files: |- + go.* + go/** + !*.tar.gz dispatch_docs_build: runs-on: ubuntu-latest needs: tag_sdk diff --git a/.github/workflows/run-acceptance-tests.yml b/.github/workflows/run-acceptance-tests.yml index 02a3f35..eab99b2 100644 --- a/.github/workflows/run-acceptance-tests.yml +++ b/.github/workflows/run-acceptance-tests.yml @@ -72,7 +72,8 @@ jobs: with: lfs: true ref: ${{ env.PR_COMMIT_SHA }} - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -128,6 +129,13 @@ jobs: run: make provider - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar provider binaries run: tar -zcf ${{ github.workspace }}/bin/provider.tar.gz -C ${{ @@ -172,7 +180,8 @@ jobs: with: lfs: true ref: ${{ env.PR_COMMIT_SHA }} - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION @@ -229,6 +238,13 @@ jobs: run: make build_${{ matrix.language }} - name: Check worktree clean uses: pulumi/git-status-check-action@v1 + with: + allowed-changes: |- + sdk/**/pulumi-plugin.json + sdk/dotnet/Pulumi.*.csproj + sdk/go/*/internal/pulumiUtilities.go + sdk/nodejs/package.json + sdk/python/pyproject.toml - run: git status --porcelain - name: Tar SDK folder run: tar -zcf sdk/${{ matrix.language }}.tar.gz -C sdk/${{ matrix.language }} . @@ -270,7 +286,8 @@ jobs: with: lfs: true ref: ${{ env.PR_COMMIT_SHA }} - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION diff --git a/.github/workflows/weekly-pulumi-update.yml b/.github/workflows/weekly-pulumi-update.yml index f75d235..4c16336 100644 --- a/.github/workflows/weekly-pulumi-update.yml +++ b/.github/workflows/weekly-pulumi-update.yml @@ -45,7 +45,8 @@ jobs: uses: actions/checkout@v4 with: lfs: true - - name: Set Provider Version + - id: version + name: Set Provider Version uses: pulumi/provider-version-action@v1 with: set-env: PROVIDER_VERSION