aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gh-pages-examples.yml
diff options
context:
space:
mode:
authorGoooler <wangzongler@gmail.com>2022-03-24 20:56:06 +0800
committerGitHub <noreply@github.com>2022-03-24 15:56:06 +0300
commitea4a3bf6c55da8b6cf1dde144d8d2ae854b80243 (patch)
tree28f35d41c6928d387ca6df78308263ce2d441a73 /.github/workflows/gh-pages-examples.yml
parentdd0fd03ea37554d79a02a8c6bcfd5f081dc6a1e1 (diff)
downloaddokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.tar.gz
dokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.tar.bz2
dokka-ea4a3bf6c55da8b6cf1dde144d8d2ae854b80243.zip
Optimize CI a bit (#2385)
* Bump actions/checkout to v3 * Bump actions/setup-java to v3 * Use gradle-build-action * Merge validation into check.yml * Reformat * Trim blank lines * Use https * Cleanup * Fix * Remove names * Cleanup * Rename validate to validate-wrapper * Use cirrus-actions/rebase@v1.5 * Use cirrus-actions/rebase@1.5
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: