Skip to content

Commit db2e489

Browse files
authored
Fixes documentation workflow (#13)
Upgrades upload-pages-artifact to v3, and deploy-pages to v4. The previous versions, v1.0.7 and v2.0.0, are both deprecated.
1 parent 6b3d3b9 commit db2e489

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

.github/workflows/Documentation.yml

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,15 +12,24 @@ permissions:
1212
id-token: write
1313

1414
jobs:
15-
publish-documentation:
15+
build-documentation:
1616
runs-on: ubuntu-latest
1717
steps:
1818
- uses: actions/checkout@v3
1919
- name: Build html
2020
run: bin/gradle dokkaHtml --no-daemon --stacktrace
2121
- name: Upload GitHub Pages artifact
22-
uses: actions/upload-pages-artifact@v1.0.7
22+
uses: actions/upload-pages-artifact@v3
2323
with:
2424
path: lib/build/dokka/html
25+
26+
publish-documentation:
27+
environment:
28+
name: github-pages
29+
url: ${{ steps.deployment.outputs.page_url }}
30+
needs: build-documentation
31+
runs-on: ubuntu-latest
32+
steps:
2533
- name: Deploy GitHub Pages site
26-
uses: actions/[email protected]
34+
id: deployment
35+
uses: actions/deploy-pages@v4

0 commit comments

Comments
 (0)