diff options
author | Vadim Mishenev <vad-mishenev@yandex.ru> | 2022-02-09 04:12:17 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-02-09 04:12:17 +0300 |
commit | 39d26e619fd2e37860b97c6a34a9594934405ab0 (patch) | |
tree | a7aae9852871ba74c19dcd212ba04d38dd21c9db /.github | |
parent | 176b7354496a9135646ba9fc81976711d4de62c3 (diff) | |
download | dokka-39d26e619fd2e37860b97c6a34a9594934405ab0.tar.gz dokka-39d26e619fd2e37860b97c6a34a9594934405ab0.tar.bz2 dokka-39d26e619fd2e37860b97c6a34a9594934405ab0.zip |
Add GH Action to publish versioning-multimodule-example (#2352)
Diffstat (limited to '.github')
-rw-r--r-- | .github/workflows/gh-pages-examples.yml | 36 |
1 files changed, 35 insertions, 1 deletions
diff --git a/.github/workflows/gh-pages-examples.yml b/.github/workflows/gh-pages-examples.yml index e0fbb8be..7d0dacce 100644 --- a/.github/workflows/gh-pages-examples.yml +++ b/.github/workflows/gh-pages-examples.yml @@ -44,10 +44,44 @@ jobs: name: ${{ matrix.projects }} path: examples/gradle/${{ matrix.projects }}/build/dokka + build-multimodule-examples: + runs-on: ubuntu-latest + if: github.repository == 'Kotlin/dokka' + strategy: + matrix: + projects: [ + dokka-versioning-multimodule-example + ] + steps: + - name: Checkout dokka + uses: actions/checkout@v2 + - uses: dorny/paths-filter@v2 + id: filter + with: + filters: | + examples_changed: + - 'examples/gradle/${{ matrix.projects }}/**' + + - uses: actions/setup-java@v2 + with: + distribution: 'zulu' + java-version: 11 + + - 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' + with: + name: ${{ matrix.projects }} + path: examples/gradle/${{ matrix.projects }}/build/dokka deploy-examples: runs-on: ubuntu-latest - needs: build-examples + needs: [build-examples, build-multimodule-examples] steps: - uses: actions/download-artifact@v2 with: |