diff options
author | Kamil Doległo <kamilok1965@interia.pl> | 2020-10-21 01:43:46 +0200 |
---|---|---|
committer | Kamil Doległo <kamilok1965@interia.pl> | 2020-10-21 12:10:50 +0200 |
commit | ca75a215cb0373a06aebcb24fb25aef4b6b2cfb1 (patch) | |
tree | 993584adac0ae1478b62e1e03dd5860eb015d091 /.github/workflows/gh-pages.yml | |
parent | 0116d7286eafc6c0a7d6626537d40e71958902ec (diff) | |
download | dokka-ca75a215cb0373a06aebcb24fb25aef4b6b2cfb1.tar.gz dokka-ca75a215cb0373a06aebcb24fb25aef4b6b2cfb1.tar.bz2 dokka-ca75a215cb0373a06aebcb24fb25aef4b6b2cfb1.zip |
Fix gh-pages generation script
Diffstat (limited to '.github/workflows/gh-pages.yml')
-rw-r--r-- | .github/workflows/gh-pages.yml | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 32ef51c2..25981de5 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -11,6 +11,8 @@ jobs: steps: - name: Checkout dokka uses: actions/checkout@v2 + with: + path: dokka - uses: dorny/paths-filter@v2 id: filter @@ -18,25 +20,27 @@ jobs: filters: | docs_changed: - 'docs/**' + working-directory: ./dokka - uses: actions/setup-java@v1 with: java-version: 11 - name: Get current dokka version - run: echo "::set-env name=DOKKA_VERSION::`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2 | cut -d '-' -f 1`" + run: echo "DOKKA_VERSION=`./gradlew :properties | grep '^version:.*' | cut -d ' ' -f 2 | cut -d '-' -f 1`" >> $GITHUB_ENV if: steps.filter.outputs.docs_changed == 'true' + working-directory: ./dokka - name: Build docs run: ./gradlew mkdocsBuild -Pdokka_version=$DOKKA_VERSION --info if: steps.filter.outputs.docs_changed == 'true' + working-directory: ./dokka - name: Deploy uses: peaceiris/actions-gh-pages@v3 if: steps.filter.outputs.docs_changed == 'true' with: github_token: ${{ secrets.GITHUB_TOKEN }} - publish_dir: ./docs/build/mkdocs - destination_dir: ../ + publish_dir: ./dokka/docs/build/mkdocs keep_files: true full_commit_message: Publish ${{ env.DOKKA_VERSION }} documentation |