Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#3008)
Browse files Browse the repository at this point in the history
This PR was automatically generated by the
update-native-provider-workflows workflow in the pulumi/ci-mgmt repo,
from commit 2c4960e091c66f59df2902620e003f2db1a7b063.
  • Loading branch information
pulumi-bot authored May 16, 2024
1 parent e7249ac commit 675c630
Show file tree
Hide file tree
Showing 5 changed files with 131 additions and 41 deletions.
37 changes: 28 additions & 9 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -113,6 +114,13 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- 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 ${{
Expand Down Expand Up @@ -154,7 +162,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
Expand Down Expand Up @@ -209,6 +218,13 @@ jobs:
run: make ${{ matrix.language }}_sdk
- 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 }} .
Expand Down Expand Up @@ -248,7 +264,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
Expand Down Expand Up @@ -386,7 +403,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
Expand Down Expand Up @@ -422,11 +440,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
Expand All @@ -446,7 +463,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
Expand Down Expand Up @@ -530,7 +548,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
Expand Down
37 changes: 28 additions & 9 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -105,6 +106,13 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- 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 ${{
Expand Down Expand Up @@ -146,7 +154,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
Expand Down Expand Up @@ -201,6 +210,13 @@ jobs:
run: make ${{ matrix.language }}_sdk
- 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 }} .
Expand Down Expand Up @@ -239,7 +255,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
Expand Down Expand Up @@ -377,7 +394,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
Expand Down Expand Up @@ -413,11 +431,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
Expand All @@ -437,7 +454,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
Expand Down Expand Up @@ -521,7 +539,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
Expand Down
72 changes: 53 additions & 19 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -105,6 +106,13 @@ jobs:
github_token: ${{ secrets.GITHUB_TOKEN }}
- 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 ${{
Expand Down Expand Up @@ -146,7 +154,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
Expand Down Expand Up @@ -201,6 +210,13 @@ jobs:
run: make ${{ matrix.language }}_sdk
- 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 }} .
Expand Down Expand Up @@ -239,7 +255,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
Expand Down Expand Up @@ -377,7 +394,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
Expand Down Expand Up @@ -413,11 +431,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
Expand All @@ -437,7 +454,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
Expand Down Expand Up @@ -521,7 +539,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
Expand Down Expand Up @@ -565,26 +584,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/[email protected]
- 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
Expand Down
Loading

0 comments on commit 675c630

Please sign in to comment.