Skip to content

Commit 0b442f0

Browse files
authored
ci: deploy teaser image with newest lib version (#1445)
Thanks to this, we'll have auto-updating version on the image. We'll just need to use the image in the README and the docs once it's deployed.
1 parent 4b531e2 commit 0b442f0

File tree

5 files changed

+31
-0
lines changed

5 files changed

+31
-0
lines changed

.github/workflows/release-common.main.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,10 @@ fun JobBuilder<*>.deployDocs() {
3131
name = "Copy Dokka output to Mkdocs output",
3232
command = "cp -r github-workflows-kt/build/dokka/html/* $directoryToDeploy/api-docs",
3333
)
34+
run(
35+
name = "Copy teaser image",
36+
command = "cp images/teaser-with-newest-version.svg $directoryToDeploy"
37+
)
3438
uses(
3539
name = "Deploy merged docs to GitHub Pages",
3640
action = GithubPagesDeployAction(

.github/workflows/release-docs.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,9 @@ jobs:
5353
name: 'Copy Dokka output to Mkdocs output'
5454
run: 'cp -r github-workflows-kt/build/dokka/html/* to-gh-pages/api-docs'
5555
- id: 'step-9'
56+
name: 'Copy teaser image'
57+
run: 'cp images/teaser-with-newest-version.svg to-gh-pages'
58+
- id: 'step-10'
5659
name: 'Deploy merged docs to GitHub Pages'
5760
uses: 'JamesIves/github-pages-deploy-action@v4'
5861
with:

.github/workflows/release.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -89,6 +89,9 @@ jobs:
8989
name: 'Copy Dokka output to Mkdocs output'
9090
run: 'cp -r github-workflows-kt/build/dokka/html/* to-gh-pages/api-docs'
9191
- id: 'step-19'
92+
name: 'Copy teaser image'
93+
run: 'cp images/teaser-with-newest-version.svg to-gh-pages'
94+
- id: 'step-20'
9295
name: 'Deploy merged docs to GitHub Pages'
9396
uses: 'JamesIves/github-pages-deploy-action@v4'
9497
with:

github-workflows-kt/build.gradle.kts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,10 @@ val validateDuplicatedVersion by tasks.creating<Task> {
9393
rootDir.resolve(".github/workflows/end-to-end-tests.main.kts").readText()
9494
.contains("\"io.github.typesafegithub:action-updates-checker:$version\"")
9595
) { "Library version stated in end-to-end-tests.main.kts should be equal to $version!" }
96+
require(
97+
rootDir.resolve("images/teaser-with-newest-version.svg").readText()
98+
.contains("\"io.github.typesafegithub:github-workflows-kt:$version\"")
99+
) { "Library version stated in the teaser image shiuld be equal to $version!" }
96100
}
97101
}
98102

images/teaser-with-newest-version.svg

Lines changed: 17 additions & 0 deletions
Loading

0 commit comments

Comments
 (0)