Skip to content

Commit

Permalink
Update GitHub Actions workflows. (#64)
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 6ef5444d6e792b70fd2ed0791d776a6f9f77714e.
  • Loading branch information
pulumi-bot authored May 17, 2024
1 parent b10886c commit 856a270
Show file tree
Hide file tree
Showing 5 changed files with 44 additions and 56 deletions.
17 changes: 2 additions & 15 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,8 +60,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -165,8 +163,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -268,8 +264,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -365,8 +359,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -431,8 +423,6 @@ jobs:
path: ci-scripts
repository: pulumi/scripts
- run: echo "ci-scripts" >> .git/info/exclude
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -510,8 +500,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -541,11 +529,10 @@ jobs:
- name: Uncompress java SDK
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
${{github.workspace}}/sdk/java
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
- name: Publish Java SDK
uses: gradle/gradle-build-action@v3
env:
PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }}
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
Expand Down
52 changes: 37 additions & 15 deletions .github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -157,8 +155,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -259,8 +255,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -356,8 +350,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -422,8 +414,6 @@ jobs:
path: ci-scripts
repository: pulumi/scripts
- run: echo "ci-scripts" >> .git/info/exclude
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -501,8 +491,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -532,12 +520,46 @@ jobs:
- name: Uncompress java SDK
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
${{github.workspace}}/sdk/java
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
- name: Publish Java SDK
uses: gradle/gradle-build-action@v3
env:
PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }}
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
gradle-version: 7.4.1
publish_go_sdk:
runs-on: ubuntu-latest
name: publish-go-sdk
needs: publish_sdk
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
lfs: true
- id: version
name: Set Provider Version
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- 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
- 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
23 changes: 5 additions & 18 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -157,8 +155,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -259,8 +255,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -356,8 +350,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -422,8 +414,6 @@ jobs:
path: ci-scripts
repository: pulumi/scripts
- run: echo "ci-scripts" >> .git/info/exclude
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -501,8 +491,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -532,19 +520,18 @@ jobs:
- name: Uncompress java SDK
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C
${{github.workspace}}/sdk/java
- name: Set PACKAGE_VERSION to Env
run: echo "PACKAGE_VERSION=$(pulumictl get version --language generic)" >>
$GITHUB_ENV
- name: Publish Java SDK
uses: gradle/gradle-build-action@v3
env:
PACKAGE_VERSION: ${{ env.PROVIDER_VERSION }}
with:
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: ./sdk/java
gradle-version: 7.4.1
pubish_go_sdk:
publish_go_sdk:
runs-on: ubuntu-latest
name: publish-go-sdk
needs: publish-sdk
needs: publish_sdk
steps:
- name: Checkout Repo
uses: actions/checkout@v4
Expand Down Expand Up @@ -578,7 +565,7 @@ jobs:
!*.tar.gz
dispatch_docs_build:
runs-on: ubuntu-latest
needs: tag_sdk
needs: publish_go_sdk
steps:
- name: Install pulumictl
uses: jaxxstorm/[email protected]
Expand Down
6 changes: 0 additions & 6 deletions .github/workflows/run-acceptance-tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -185,8 +183,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down Expand Up @@ -291,8 +287,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down
2 changes: 0 additions & 2 deletions .github/workflows/weekly-pulumi-update.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,8 +50,6 @@ jobs:
uses: pulumi/provider-version-action@v1
with:
set-env: PROVIDER_VERSION
- name: Unshallow clone for tags
run: git fetch --prune --unshallow --tags
- name: Install Go
uses: actions/setup-go@v5
with:
Expand Down

0 comments on commit 856a270

Please sign in to comment.