Skip to content

Commit ea9596b

Browse files
committed
ci: build pages
1 parent fc9cb42 commit ea9596b

File tree

2 files changed

+39
-0
lines changed

2 files changed

+39
-0
lines changed

.github/workflows/integration.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,12 @@ jobs:
1515
- uses: "docker://ghcr.io/sethvargo/ratchet@sha256:81af1075dc4ceb54f1c87ac9ff6a9ebe43626c59913f01810f5be77f4eb67301" # ratchet:docker://ghcr.io/sethvargo/ratchet:0.4.0
1616
with:
1717
args: "check .github/workflows/codeql.yml"
18+
- uses: "docker://ghcr.io/sethvargo/ratchet@sha256:81af1075dc4ceb54f1c87ac9ff6a9ebe43626c59913f01810f5be77f4eb67301" # ratchet:docker://ghcr.io/sethvargo/ratchet:0.4.0
19+
with:
20+
args: "check .github/workflows/release.yml"
21+
- uses: "docker://ghcr.io/sethvargo/ratchet@sha256:81af1075dc4ceb54f1c87ac9ff6a9ebe43626c59913f01810f5be77f4eb67301" # ratchet:docker://ghcr.io/sethvargo/ratchet:0.4.0
22+
with:
23+
args: "check .github/workflows/pages.yml"
1824
build:
1925
runs-on: ubuntu-latest
2026
steps:

.github/workflows/pages.yml

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
name: Pages
2+
on:
3+
release:
4+
types: [published]
5+
workflow_dispatch:
6+
permissions:
7+
contents: read
8+
pages: write
9+
id-token: write
10+
concurrency:
11+
group: pages
12+
cancel-in-progress: false
13+
jobs:
14+
deploy:
15+
runs-on: ubuntu-latest
16+
environment:
17+
name: pages
18+
url: ${{ steps.deployment.outputs.page_url }}
19+
steps:
20+
- uses: actions/checkout@c85c95e3d7251135ab7dc9ce3241c5835cc595a9 # ratchet:actions/checkout@v3
21+
- uses: actions/setup-java@5ffc13f4174014e2d4d4572b3d74c3fa61aeb2c2 # ratchet:actions/setup-java@v3
22+
with:
23+
distribution: zulu
24+
java-version: 8
25+
- uses: gradle/gradle-build-action@749f47bda3e44aa060e82d7b3ef7e40d953bd629 # ratchet:gradle/gradle-build-action@v2
26+
- run: ./gradlew dokkaHtml
27+
- uses: actions/configure-pages@f156874f8191504dae5b037505266ed5dda6c382 # ratchet:actions/configure-pages@v3
28+
- run: |
29+
mkdir -p _site
30+
mv build/dokka/html _site/api
31+
- uses: actions/upload-pages-artifact@66b63f4a7de003f4f00cc8e9af4b83b8f2abdb96 # ratchet:actions/upload-pages-artifact@v1
32+
- uses: actions/deploy-pages@ee48c7b82e077d7b8ef30b50a719e6a792a50c9a # ratchet:actions/deploy-pages@v2
33+
id: deployment

0 commit comments

Comments
 (0)