chore: prepare for releasing version 1.13.0 #66
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
# This file was generated using Kotlin DSL (.github/workflows/release.main.kts). | |
# If you want to modify the workflow, please change the Kotlin file and regenerate this YAML file. | |
# Generated with https://github.com/typesafegithub/github-workflows-kt | |
name: 'Release' | |
on: | |
push: | |
tags: | |
- 'v*.*.*' | |
env: | |
SIGNING_KEY: '${{ secrets.SIGNING_KEY }}' | |
SIGNING_PASSWORD: '${{ secrets.SIGNING_PASSWORD }}' | |
ORG_GRADLE_PROJECT_sonatypeUsername: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEUSERNAME }}' | |
ORG_GRADLE_PROJECT_sonatypePassword: '${{ secrets.ORG_GRADLE_PROJECT_SONATYPEPASSWORD }}' | |
jobs: | |
check_yaml_consistency: | |
name: 'Check YAML consistency' | |
runs-on: 'ubuntu-latest' | |
steps: | |
- id: 'step-0' | |
name: 'Check out' | |
uses: 'actions/checkout@v4' | |
- id: 'step-1' | |
name: 'Generate action bindings' | |
run: '.github/workflows/generate-action-bindings.main.kts "release.yaml"' | |
- id: 'step-2' | |
name: 'Execute script' | |
run: 'rm ''.github/workflows/release.yaml'' && ''.github/workflows/release.main.kts''' | |
- id: 'step-3' | |
name: 'Consistency check' | |
run: 'git diff --exit-code ''.github/workflows/release.yaml''' | |
release: | |
runs-on: 'ubuntu-latest' | |
needs: | |
- 'check_yaml_consistency' | |
steps: | |
- id: 'step-0' | |
uses: 'actions/checkout@v4' | |
- id: 'step-1' | |
name: 'Set up JDK' | |
uses: 'actions/setup-java@v4' | |
with: | |
java-version: '11' | |
distribution: 'zulu' | |
- id: 'step-2' | |
uses: 'gradle/actions/setup-gradle@v3' | |
- id: 'step-3' | |
name: 'Build' | |
run: './gradlew build' | |
- id: 'step-4' | |
uses: 'actions/setup-python@v5' | |
with: | |
python-version: '3.8' | |
- id: 'step-5' | |
name: 'Publish '':shared-internal'' to Sonatype' | |
run: './gradlew :shared-internal:publishToSonatype closeAndReleaseSonatypeStagingRepository --no-configuration-cache' | |
- id: 'step-6' | |
name: 'Publish '':github-workflows-kt'' to Sonatype' | |
run: './gradlew :github-workflows-kt:publishToSonatype closeAndReleaseSonatypeStagingRepository --no-configuration-cache' | |
- id: 'step-7' | |
name: 'Publish '':action-binding-generator'' to Sonatype' | |
run: './gradlew :action-binding-generator:publishToSonatype closeAndReleaseSonatypeStagingRepository --no-configuration-cache' | |
- id: 'step-8' | |
name: 'Wait until '':shared-internal'' present in Maven Central' | |
run: './gradlew :shared-internal:waitUntilLibraryPresentInMavenCentral' | |
- id: 'step-9' | |
name: 'Wait until '':github-workflows-kt'' present in Maven Central' | |
run: './gradlew :github-workflows-kt:waitUntilLibraryPresentInMavenCentral' | |
- id: 'step-10' | |
name: 'Wait until '':action-binding-generator'' present in Maven Central' | |
run: './gradlew :action-binding-generator:waitUntilLibraryPresentInMavenCentral' | |
- id: 'step-11' | |
run: 'pip install -r docs/requirements.txt' | |
- id: 'step-12' | |
name: 'Build Mkdocs docs' | |
run: 'mkdocs build --site-dir to-gh-pages' | |
- id: 'step-13' | |
uses: 'gradle/actions/setup-gradle@v3' | |
- id: 'step-14' | |
name: 'Generate API docs' | |
run: './gradlew :github-workflows-kt:dokkaHtml --no-configuration-cache' | |
- id: 'step-15' | |
name: 'Prepare target directory for API docs' | |
run: 'mkdir -p to-gh-pages/api-docs' | |
- id: 'step-16' | |
name: 'Copy Dokka output to Mkdocs output' | |
run: 'cp -r github-workflows-kt/build/dokka/html/* to-gh-pages/api-docs' | |
- id: 'step-17' | |
name: 'Deploy merged docs to GitHub Pages' | |
uses: 'JamesIves/github-pages-deploy-action@v4' | |
with: | |
folder: 'to-gh-pages' |