Skip to content

Commit

Permalink
Fixes GitHub Pages deployment
Browse files Browse the repository at this point in the history
  • Loading branch information
hugomd committed Jan 16, 2024
1 parent 4f62fef commit f76c750
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions .github/workflows/Documentation.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@ name: Build and deploy documentation to GitHub Pages

on:
push:
branches:
- main

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
Expand All @@ -12,15 +10,20 @@ permissions:
id-token: write

jobs:
publish-documentation:
# Build job
build-documentation:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build html
run: bin/gradle dokkaHtml --no-daemon --stacktrace
- name: Upload GitHub Pages artifact
uses: actions/upload-pages-artifact@v1.0.7
uses: actions/upload-artifact@v4
with:
path: lib/build/dokka/html
# Publish job
publish-documentation:
runs-on: ubuntu-latest
steps:
- name: Deploy GitHub Pages site
uses: actions/deploy-pages@v2.0.0
uses: actions/deploy-pages@v4

0 comments on commit f76c750

Please sign in to comment.