Merge pull request #43 from Marco012/master #27
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Generate dokka HTML and publish to Github Pages | |
on: | |
push: | |
branches: | |
- master | |
env: | |
PRODUCTION: true | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
with: | |
persist-credentials: false | |
fetch-depth: 0 | |
- uses: actions/setup-java@v1 | |
with: | |
java-version: 11 | |
- name: Grant execute permisson for gradlew | |
run: chmod +x gradlew | |
- name: Update README.md version | |
run: ./gradlew lib:updateReadmeVersion | |
- name: Generate Documention with Dokka | |
run: ./gradlew lib:dokkaHtml | |
- name: Moving generated documentation files | |
run: | | |
rm -rf ./docs | |
mv -f lib/build/dokka/html ./docs | |
- name: Deploy to GitHub Pages | |
uses: JamesIves/[email protected] | |
with: | |
branch: gh-pages | |
folder: docs | |