Skip to content

Commit

Permalink
Install tools package publishing (#1004)
Browse files Browse the repository at this point in the history
Re-use our own tool setups which can include additional options for
caching rather than duplicating the setup logic into the publishing
action.

This depends on first merging:
- pulumi/pulumi-package-publisher#32
- #1003

This PR assumes that `pulumi/pulumi-package-publisher` will then be
published as `v0.0.19` (the next version).
  • Loading branch information
danielrbradley authored Jun 27, 2024
1 parent f53f35b commit f8daeb9
Show file tree
Hide file tree
Showing 13 changed files with 100 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ actionVersions:
publish:
# publisherAction is the version of the pulumi-package-publisher action to use.
# This should be pinned to just the major version once v1 is released.
publisherAction: pulumi/[email protected].18
publisherAction: pulumi/[email protected].19
# passed to the sdk input of pulumi-package-publisher
# This is overridden in pulumi-local to disable python
sdk: all
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,21 @@ jobs:
- publish
runs-on: #{{ .Config.runner.default }}#
steps:
- name: Checkout Repo
uses: #{{ .Config.actionVersions.checkout }}#
#{{- if .Config.checkoutSubmodules }}#
with:
submodules: #{{ .Config.checkoutSubmodules }}#
#{{- end }}#
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: #{{ .Config.publish.publisherAction }}#
with:
sdk: #{{ .Config.publish.sdk }}#
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "#{{ .Config.toolVersions.dotnet }}#"
java-version: "#{{ .Config.toolVersions.java }}#"
node-version: "#{{ .Config.toolVersions.node }}#"
python-version: "#{{ .Config.toolVersions.python }}#"

tag_release_if_labeled_needs_release:
name: Tag release if labeled as needs-release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,15 +86,21 @@ jobs:
- publish
runs-on: #{{ .Config.runner.default }}#
steps:
- name: Checkout Repo
uses: #{{ .Config.actionVersions.checkout }}#
#{{- if .Config.checkoutSubmodules }}#
with:
submodules: #{{ .Config.checkoutSubmodules }}#
#{{- end }}#
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: #{{ .Config.publish.publisherAction }}#
with:
sdk: #{{ .Config.publish.sdk }}#
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "#{{ .Config.toolVersions.dotnet }}#"
java-version: "#{{ .Config.toolVersions.java }}#"
node-version: "#{{ .Config.toolVersions.node }}#"
python-version: "#{{ .Config.toolVersions.python }}#"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -103,15 +103,21 @@ jobs:
- publish
runs-on: #{{ .Config.runner.default }}#
steps:
- name: Checkout Repo
uses: #{{ .Config.actionVersions.checkout }}#
#{{- if .Config.checkoutSubmodules }}#
with:
submodules: #{{ .Config.checkoutSubmodules }}#
#{{- end }}#
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: #{{ .Config.publish.publisherAction }}#
with:
sdk: #{{ .Config.publish.sdk }}#
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "#{{ .Config.toolVersions.dotnet }}#"
java-version: "#{{ .Config.toolVersions.java }}#"
node-version: "#{{ .Config.toolVersions.node }}#"
python-version: "#{{ .Config.toolVersions.python }}#"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
14 changes: 9 additions & 5 deletions provider-ci/test-providers/aws/.github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -135,15 +135,19 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: true
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"

tag_release_if_labeled_needs_release:
name: Tag release if labeled as needs-release
Expand Down
14 changes: 9 additions & 5 deletions provider-ci/test-providers/aws/.github/workflows/prerelease.yml
Original file line number Diff line number Diff line change
Expand Up @@ -95,15 +95,19 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: true
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
14 changes: 9 additions & 5 deletions provider-ci/test-providers/aws/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -110,15 +110,19 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
with:
submodules: true
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -131,15 +131,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"

tag_release_if_labeled_needs_release:
name: Tag release if labeled as needs-release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,15 +93,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,15 +108,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
12 changes: 7 additions & 5 deletions provider-ci/test-providers/docker/.github/workflows/master.yml
Original file line number Diff line number Diff line change
Expand Up @@ -144,15 +144,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"

tag_release_if_labeled_needs_release:
name: Tag release if labeled as needs-release
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -106,15 +106,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down
12 changes: 7 additions & 5 deletions provider-ci/test-providers/docker/.github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -121,15 +121,17 @@ jobs:
- publish
runs-on: ubuntu-latest
steps:
- name: Checkout Repo
uses: actions/checkout@v4
- name: Setup tools
uses: ./.github/actions/setup-tools
with:
tools: pulumicli, pulumictl, go, node, dotnet, python, java
- name: Publish SDKs
uses: pulumi/[email protected].18
uses: pulumi/[email protected].19
with:
sdk: all
version: ${{ needs.prerequisites.outputs.version }}
dotnet-version: "6.0.x"
java-version: "11"
node-version: "20.x"
python-version: "3.11.8"
publish_go_sdk:
name: publish_go_sdk
needs:
Expand Down

0 comments on commit f8daeb9

Please sign in to comment.