Skip to content

chore: prepare for releasing version 1.4.0 #56

chore: prepare for releasing version 1.4.0

chore: prepare for releasing version 1.4.0 #56

Workflow file for this run

# 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: 'Execute script'
run: 'rm ''.github/workflows/release.yaml'' && ''.github/workflows/release.main.kts'''
- id: 'step-2'
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@v3'
with:
java-version: '11'
distribution: 'zulu'
- id: 'step-2'
name: 'Build'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: 'build'
- id: 'step-3'
uses: 'actions/setup-python@v4'
with:
python-version: '3.8'
- id: 'step-4'
name: 'Publish '':automation:action-binding-generator'' to Sonatype'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: ':automation:action-binding-generator:publishToSonatype closeAndReleaseSonatypeStagingRepository'
- id: 'step-5'
name: 'Publish '':library'' to Sonatype'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: ':library:publishToSonatype closeAndReleaseSonatypeStagingRepository'
- id: 'step-6'
name: 'Wait until '':automation:action-binding-generator'' present in Maven Central'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: ':automation:action-binding-generator:waitUntilLibraryPresentInMavenCentral'
- id: 'step-7'
name: 'Wait until '':library'' present in Maven Central'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: ':library:waitUntilLibraryPresentInMavenCentral'
- id: 'step-8'
run: 'pip install -r docs/requirements.txt'
- id: 'step-9'
name: 'Build Mkdocs docs'
run: 'mkdocs build --site-dir to-gh-pages'
- id: 'step-10'
name: 'Generate API docs'
uses: 'gradle/gradle-build-action@v2'
with:
arguments: ':library:dokkaHtml'
- id: 'step-11'
name: 'Prepare target directory for API docs'
run: 'mkdir -p to-gh-pages/api-docs'
- id: 'step-12'
name: 'Copy Dokka output to Mkdocs output'
run: 'cp -r library/build/dokka/html/* to-gh-pages/api-docs'
- id: 'step-13'
name: 'Deploy merged docs to GitHub Pages'
uses: 'JamesIves/github-pages-deploy-action@v4'
with:
folder: 'to-gh-pages'