-
Notifications
You must be signed in to change notification settings - Fork 156
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[internal] Update GitHub Actions workflow files (#2168)
- Loading branch information
1 parent
de8871b
commit 1426ce0
Showing
16 changed files
with
254 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -303,6 +305,61 @@ jobs: | |
- 16.x | ||
pythonversion: | ||
- "3.9" | ||
publish_java_sdk: | ||
continue-on-error: true | ||
name: publish_java_sdk | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout Scripts Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
publish_sdk: | ||
name: publish_sdk | ||
needs: publish | ||
|
@@ -340,12 +397,6 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download python SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -370,28 +421,11 @@ jobs: | |
- name: Uncompress nodejs SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C | ||
${{github.workspace}}/sdk/nodejs | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- run: python -m pip install pip twine | ||
- env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Publish SDKs | ||
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }} | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|
@@ -406,8 +440,6 @@ jobs: | |
- 3.1.301 | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
nodeversion: | ||
- 16.x | ||
pythonversion: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -303,6 +305,61 @@ jobs: | |
- 16.x | ||
pythonversion: | ||
- "3.9" | ||
publish_java_sdk: | ||
continue-on-error: true | ||
name: publish_java_sdk | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout Scripts Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
publish_sdk: | ||
name: publish_sdk | ||
needs: publish | ||
|
@@ -340,12 +397,6 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download python SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -370,28 +421,11 @@ jobs: | |
- name: Uncompress nodejs SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C | ||
${{github.workspace}}/sdk/nodejs | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- run: python -m pip install pip twine | ||
- env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Publish SDKs | ||
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }} | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|
@@ -406,8 +440,6 @@ jobs: | |
- 3.1.301 | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
nodeversion: | ||
- 16.x | ||
pythonversion: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
# WARNING: This file is autogenerated - changes will be overwritten if not made via https://github.com/pulumi/ci-mgmt | ||
|
||
env: | ||
AWS_REGION: us-west-2 | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
|
@@ -247,6 +249,61 @@ jobs: | |
- 16.x | ||
pythonversion: | ||
- "3.9" | ||
publish_java_sdk: | ||
continue-on-error: true | ||
name: publish_java_sdk | ||
needs: publish | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout Repo | ||
uses: actions/checkout@v3 | ||
- name: Checkout Scripts Repo | ||
uses: actions/checkout@v3 | ||
with: | ||
path: ci-scripts | ||
repository: pulumi/scripts | ||
- name: Unshallow clone for tags | ||
run: git fetch --prune --unshallow --tags | ||
- name: Install Go | ||
uses: actions/setup-go@v2 | ||
with: | ||
go-version: ${{matrix.goversion}} | ||
- name: Install pulumictl | ||
uses: jaxxstorm/[email protected] | ||
with: | ||
repo: pulumi/pulumictl | ||
- name: Install Pulumi CLI | ||
uses: pulumi/action-install-pulumi-cli@v2 | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
strategy: | ||
fail-fast: true | ||
matrix: | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
publish_sdk: | ||
name: publish_sdk | ||
needs: publish | ||
|
@@ -284,12 +341,6 @@ jobs: | |
uses: actions/setup-python@v2 | ||
with: | ||
python-version: ${{matrix.pythonversion}} | ||
- name: Setup Java | ||
uses: actions/setup-java@v3 | ||
with: | ||
cache: gradle | ||
distribution: temurin | ||
java-version: ${{matrix.javaversion}} | ||
- name: Download python SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
|
@@ -314,28 +365,11 @@ jobs: | |
- name: Uncompress nodejs SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/nodejs.tar.gz -C | ||
${{github.workspace}}/sdk/nodejs | ||
- name: Download java SDK | ||
uses: actions/download-artifact@v2 | ||
with: | ||
name: java-sdk.tar.gz | ||
path: ${{ github.workspace}}/sdk/ | ||
- name: Uncompress java SDK | ||
run: tar -zxf ${{github.workspace}}/sdk/java.tar.gz -C | ||
${{github.workspace}}/sdk/java | ||
- run: python -m pip install pip twine | ||
- env: | ||
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} | ||
name: Publish SDKs | ||
run: ./ci-scripts/ci/publish-tfgen-package ${{ github.workspace }} | ||
- 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@9b814496b50909128c6a52622b416c5ffa04db49 | ||
with: | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
build-root-directory: ./sdk/java | ||
gradle-version: 7.4.1 | ||
- if: failure() && github.event_name == 'push' | ||
name: Notify Slack | ||
uses: 8398a7/action-slack@v3 | ||
|
@@ -350,8 +384,6 @@ jobs: | |
- 3.1.301 | ||
goversion: | ||
- 1.19.x | ||
javaversion: | ||
- "11" | ||
nodeversion: | ||
- 16.x | ||
pythonversion: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.