Prepare for 1.0.0 release (#1576) #49
Workflow file for this run
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
# A successful run of this action creates a staging repo at | |
# s01.oss.sonatype.org. Further manual steps are needed to complete | |
# publishing to Maven Central, see: | |
# https://central.sonatype.org/publish/release/#releasing-deployment-from-ossrh-to-the-central-repository-introduction | |
on: | |
push: | |
tags: | |
- sdk/v*.*.* | |
paths-ignore: | |
- 'CHANGELOG.md' | |
- 'CHANGELOG_PENDING.md' | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
OSSRH_REPO_URL: https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/ | |
OSSRH_USERNAME: ${{ secrets.OSSRH_USERNAME }} | |
OSSRH_PASSWORD: ${{ secrets.OSSRH_PASSWORD }} | |
# Include only last 8 hex digits of the key ID included, due to | |
# limitations of gradle. | |
SIGNING_KEY_ID: ${{ secrets.SIGNING_KEY_ID }} | |
# Obtained by `gpg --armor --export-secret-key [email protected]`. | |
SIGNING_KEY: ${{ secrets.SIGNING_KEY }} | |
# Aka passphrase for the GPG key. | |
SIGNING_PASSWORD: ${{ secrets.SIGNING_PASSWORD }} | |
jobs: | |
publish: | |
runs-on: ubuntu-latest | |
timeout-minutes: 10 | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
submodules: recursive | |
- name: Fetch Tags | |
run: git fetch --quiet --prune --unshallow --tags | |
- name: Install pulumictl | |
uses: jaxxstorm/[email protected] | |
with: | |
repo: pulumi/pulumictl | |
tag: v0.0.31 | |
cache: enable | |
- run: ./scripts/versions.sh | tee versions.txt | |
- name: Setup versioning env vars | |
run: cat versions.txt | tee $GITHUB_ENV | |
- name: Set up JDK 11 | |
uses: actions/setup-java@v4 | |
with: | |
java-version: '11' | |
distribution: 'temurin' | |
cache: 'gradle' | |
- name: Validate Gradle wrapper | |
uses: gradle/wrapper-validation-action@f9c9c575b8b21b6485636a91ffecd10e558c62f6 | |
- name: Publish Pulumi Java SDK | |
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 | |
with: | |
arguments: pulumi:publishToSonatype closeAndReleaseSonatypeStagingRepository | |
build-root-directory: sdk/java |