Skip to content

Commit

Permalink
Update workflow
Browse files Browse the repository at this point in the history
  • Loading branch information
DragonDev07 committed Sep 23, 2024
1 parent f4b8ceb commit 0b4f63f
Showing 1 changed file with 24 additions and 3 deletions.
27 changes: 24 additions & 3 deletions .github/workflows/deploy_doc.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,9 @@ jobs:
- name: Checkout code
uses: actions/checkout@v3

- name: Setup Pages
uses: actions/configure-pages@v5

- name: Set up JDK 17
uses: actions/setup-java@v3
with:
Expand All @@ -30,8 +33,26 @@ jobs:
- name: Generate Dokka documentation
run: ./gradlew dokkaHtml

- name: Upload artifacts
uses: actions/upload-pages-artifact@v3
with:
name: github-pages
path: docs/build/html/

deploy:
if: ${{ github.event_name != 'pull_request' }}
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

needs: build

runs-on: ubuntu-latest

steps:
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
id: deployment
uses: actions/deploy-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: build/dokka/html
artifact_name: github-pages
preview: true

0 comments on commit 0b4f63f

Please sign in to comment.