Skip to content

Prepare for v0.11.0 release (#1358) #36

Prepare for v0.11.0 release (#1358)

Prepare for v0.11.0 release (#1358) #36

# 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 support@pulumi.com`.
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/action-install-gh-release@v1.10.0
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@v3
with:
java-version: '11'
distribution: 'temurin'
cache: 'gradle'
- name: Validate Gradle wrapper
uses: gradle/wrapper-validation-action@8d49e559aae34d3e0eb16cde532684bc9702762b
- name: Publish Pulumi Java SDK
uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629
with:
arguments: pulumi:publishToSonatype closeAndReleaseSonatypeStagingRepository
build-root-directory: sdk/java