aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gh-pages-examples.yml
diff options
context:
space:
mode:
Diffstat (limited to '.github/workflows/gh-pages-examples.yml')
-rw-r--r--.github/workflows/gh-pages-examples.yml35
1 files changed, 14 insertions, 21 deletions
diff --git a/.github/workflows/gh-pages-examples.yml b/.github/workflows/gh-pages-examples.yml
index a47d37b2..3edf2726 100644
--- a/.github/workflows/gh-pages-examples.yml
+++ b/.github/workflows/gh-pages-examples.yml
@@ -4,6 +4,7 @@ on:
push:
branches:
- master
+
jobs:
build-examples:
runs-on: ubuntu-latest
@@ -11,32 +12,29 @@ jobs:
strategy:
matrix:
projects: [
- dokka-gradle-example,
- dokka-kotlinAsJava-example,
- dokka-library-publishing-example,
- dokka-multiplatform-example,
- dokka-customFormat-example
+ dokka-gradle-example,
+ dokka-kotlinAsJava-example,
+ dokka-library-publishing-example,
+ dokka-multiplatform-example,
+ dokka-customFormat-example
]
steps:
- - name: Checkout dokka
- uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
examples_changed:
- 'examples/gradle/${{ matrix.projects }}/**'
-
- - uses: actions/setup-java@v2
+ - uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
-
+ - uses: gradle/gradle-build-action@v2
- name: Build html
run: ./gradlew dokkaHtml --no-daemon --stacktrace
working-directory: examples/gradle/${{ matrix.projects }}
if: steps.filter.outputs.examples_changed == 'true'
-
- name: Upload artifact
uses: actions/upload-artifact@v2
if: steps.filter.outputs.examples_changed == 'true'
@@ -49,29 +47,24 @@ jobs:
if: github.repository == 'Kotlin/dokka'
strategy:
matrix:
- projects: [
- dokka-versioning-multimodule-example
- ]
+ projects: [ dokka-versioning-multimodule-example ]
steps:
- - name: Checkout dokka
- uses: actions/checkout@v2
+ - uses: actions/checkout@v3
- uses: dorny/paths-filter@v2
id: filter
with:
filters: |
examples_changed:
- 'examples/gradle/${{ matrix.projects }}/**'
-
- - uses: actions/setup-java@v2
+ - uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
-
+ - uses: gradle/gradle-build-action@v2
- name: Build html
run: ./gradlew dokkaHtmlMultiModule --no-daemon --stacktrace
working-directory: examples/gradle/${{ matrix.projects }}
if: steps.filter.outputs.examples_changed == 'true'
-
- name: Upload artifact
uses: actions/upload-artifact@v2
if: steps.filter.outputs.examples_changed == 'true'
@@ -81,7 +74,7 @@ jobs:
deploy-examples:
runs-on: ubuntu-latest
- needs: [build-examples, build-multimodule-examples]
+ needs: [ build-examples, build-multimodule-examples ]
steps:
- uses: actions/download-artifact@v2
with: