aboutsummaryrefslogtreecommitdiff
path: root/.github/workflows/gh-pages.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.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.yml')
-rw-r--r--.github/workflows/gh-pages.yml13
1 files changed, 4 insertions, 9 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml
index c444a3e4..40533252 100644
--- a/.github/workflows/gh-pages.yml
+++ b/.github/workflows/gh-pages.yml
@@ -5,18 +5,16 @@ on:
branches:
- master
release:
- types: [published]
+ types: [ published ]
jobs:
docs:
if: github.repository == 'Kotlin/dokka'
runs-on: ubuntu-latest
steps:
- - name: Checkout dokka
- uses: actions/checkout@v2
+ - uses: actions/checkout@v3
with:
path: dokka
-
- uses: dorny/paths-filter@v2
id: filter
with:
@@ -24,22 +22,19 @@ jobs:
docs_changed:
- 'docs/**'
working-directory: ./dokka
-
- - uses: actions/setup-java@v2
+ - uses: actions/setup-java@v3
with:
distribution: 'zulu'
java-version: 11
-
+ - uses: gradle/gradle-build-action@v2
- name: Get current dokka version
run: echo "DOKKA_VERSION=`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2 | cut -d '-' -f 1`" >> $GITHUB_ENV
if: github.event_name == 'release' || steps.filter.outputs.docs_changed == 'true'
working-directory: ./dokka
-
- name: Build docs
run: ./gradlew mkdocsBuild -Pdokka_version=$DOKKA_VERSION --info
if: github.event_name == 'release' || steps.filter.outputs.docs_changed == 'true'
working-directory: ./dokka
-
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: github.event_name == 'release' || steps.filter.outputs.docs_changed == 'true'