Skip to content

Commit c718910

Browse files
committed
Add hook to publish github pages site
1 parent 7cd614a commit c718910

File tree

1 file changed

+37
-0
lines changed

1 file changed

+37
-0
lines changed

.github/workflows/publish-docs.yml

Lines changed: 37 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,37 @@
1+
name: Publish Docs
2+
on:
3+
push
4+
5+
jobs:
6+
build:
7+
runs-on: ubuntu-latest
8+
steps:
9+
- uses: actions/checkout@v3
10+
- uses: coursier/cache-action@v6
11+
- uses: actions/setup-java@v3
12+
with:
13+
distribution: 'temurin'
14+
java-version: 17
15+
- name: Build docs
16+
run: ./mill core.docJar
17+
- name: Bundle docs
18+
run: tar cf github_pages.tar.gz out/core/docJar.dest/javadoc
19+
- name: Upload GitHub Pages artifact
20+
uses: actions/upload-pages-artifact@v1.0.4
21+
with:
22+
path: .
23+
deploy:
24+
needs: build
25+
permissions:
26+
pages: write
27+
id-token: write
28+
environment:
29+
name: github-pages
30+
url: ${{ steps.deployment.outputs.page_url }}
31+
32+
runs-on: ubuntu-latest
33+
steps:
34+
- name: Deploy to GitHub Pages
35+
id: deployment
36+
uses: actions/deploy-pages@v1.2.2
37+

0 commit comments

Comments
 (0)