Skip to content

Commit

Permalink
Merge branch 'main' into improve_javadoc
Browse files Browse the repository at this point in the history
  • Loading branch information
wzieba committed Jan 30, 2024
2 parents 894cf1d + a65311e commit 317a8fa
Showing 1 changed file with 19 additions and 6 deletions.
25 changes: 19 additions & 6 deletions .github/workflows/generate-docs.yml
Original file line number Diff line number Diff line change
@@ -1,12 +1,21 @@
name: Generate documentation
name: Generate and publish documentation

on:
release:
types: [ released ]
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

jobs:
build:
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
Expand All @@ -17,8 +26,12 @@ jobs:
distribution: 'temurin'
- name: Generate API documentation
run: ./gradlew dokkaHtml
- name: Deploy API documentation to Github Pages
uses: JamesIves/github-pages-deploy-action@v4
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
branch: gh-pages
folder: parsely/build/dokka/html
path: 'parsely/build/dokka/html'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4

0 comments on commit 317a8fa

Please sign in to comment.