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.
Set the following environment variables in your Workflow and your GitHub Action secrets:
env:
DOTNETVERSION: |
6.0.x
3.1.301
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GOVERSION: 1.20.1
JAVAVERSION: "11"
NODEVERSION: 16.x
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}
NUGET_PUBLISH_KEY: ${{ secrets.NUGET_PUBLISH_KEY }}
PYPI_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
PYTHONVERSION: "3.9"
SIGNING_KEY: ${{ secrets.JAVA_SIGNING_KEY }}
SIGNING_KEY_ID: ${{ secrets.JAVA_SIGNING_KEY_ID }}
SIGNING_PASSWORD: ${{ secrets.JAVA_SIGNING_PASSWORD }}
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_WEBHOOK_URL }}
TRAVIS_OS_NAME: linux
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/[email protected]
Optionally, you may specify language SDKs individually:
steps:
- name: Publish nodejs SDK
uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
with:
sdk: nodejs
- name: Publish Java SDK
uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
with:
sdk: java
- name: Publish Python SDK
uses: pulumi/pulumi-package-publisher@0058a106b68d8277f17bbea0cd29b2ff6e671adc
with:
sdk: python
Valid inputs to with.sdk
are:
python
- Publish to PyPIjava
- Publish to Mavennodejs
- Publish to npmdotnet
- Publish to nuget