A composite action for publishing Pulumi packages
This Action is currently in preview and meant for internal use. Any functionality can and likely will change.
This Action automates setup and publication to the package registries of four Pulumi languages.
Ensure the following tools are installed:
- Pulumi CLI
- pulumictl
- Go
- Node.js
- Python
- Java (and Gradle)
It's expected that the repository is checked out.
Set the following environment variables in your Workflow and your GitHub Action secrets:
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
Add this action to your Workflow as a step to publish to all four supported registries:
- PyPI
- Maven
- npm
- nuget
steps:
- name: Publish all SDKs
uses: pulumi/pulumi-package-publisher@v0.0.6
Optionally, you may specify language SDKs individually or in a comma separated list.
Valid inputs to with.sdk
are:
all
- Equivalent to specifying all supported registries:python,java,nodejs,dotnet
python
- Publish to PyPIjava
- Publish to Mavennodejs
- Publish to npmdotnet
- Publish to nuget!${LANG}
- To disable any of the above languages.
steps:
- uses: pulumi/pulumi-package-publisher@main
with:
sdk: nodejs
steps:
- uses: pulumi/pulumi-package-publisher@main
with:
sdk: java,python
steps:
- uses: pulumi/pulumi-package-publisher@main
with:
sdk: all,!dotnet