-
-
Notifications
You must be signed in to change notification settings - Fork 24
98 lines (97 loc) · 3.93 KB
/
release.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
# 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@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: 'Publish '':action-updates-checker'' to Sonatype'
run: './gradlew :action-updates-checker:publishToSonatype closeAndReleaseSonatypeStagingRepository --no-configuration-cache'
- id: 'step-9'
name: 'Wait until '':shared-internal'' present in Maven Central'
run: './gradlew :shared-internal:waitUntilLibraryPresentInMavenCentral'
- id: 'step-10'
name: 'Wait until '':github-workflows-kt'' present in Maven Central'
run: './gradlew :github-workflows-kt:waitUntilLibraryPresentInMavenCentral'
- id: 'step-11'
name: 'Wait until '':action-binding-generator'' present in Maven Central'
run: './gradlew :action-binding-generator:waitUntilLibraryPresentInMavenCentral'
- id: 'step-12'
name: 'Wait until '':action-updates-checker'' present in Maven Central'
run: './gradlew :action-updates-checker:waitUntilLibraryPresentInMavenCentral'
- id: 'step-13'
run: 'pip install -r docs/requirements.txt'
- id: 'step-14'
name: 'Build Mkdocs docs'
run: 'mkdocs build --site-dir to-gh-pages'
- id: 'step-15'
uses: 'gradle/actions/setup-gradle@v3'
- id: 'step-16'
name: 'Generate API docs'
run: './gradlew :github-workflows-kt:dokkaHtml --no-configuration-cache'
- id: 'step-17'
name: 'Prepare target directory for API docs'
run: 'mkdir -p to-gh-pages/api-docs'
- id: 'step-18'
name: 'Copy Dokka output to Mkdocs output'
run: 'cp -r github-workflows-kt/build/dokka/html/* to-gh-pages/api-docs'
- id: 'step-19'
name: 'Copy teaser image'
run: 'cp images/teaser-with-newest-version.svg to-gh-pages'
- id: 'step-20'
name: 'Deploy merged docs to GitHub Pages'
uses: 'JamesIves/github-pages-deploy-action@v4'
with:
folder: 'to-gh-pages'