Skip to content

Commit 5193725

Browse files
authored
kdoc.selfie.dev (#41)
2 parents e71ea46 + d5e323f commit 5193725

File tree

1 file changed

+30
-0
lines changed

1 file changed

+30
-0
lines changed

.github/workflows/publish-kdoc.yml

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
on: workflow_dispatch
2+
3+
jobs:
4+
publish:
5+
runs-on: ubuntu-latest
6+
permissions:
7+
contents: read
8+
deployments: write
9+
name: Publish to Cloudflare Pages
10+
steps:
11+
- name: Checkout
12+
uses: actions/checkout@v3
13+
- name: Install JDK 17
14+
uses: actions/setup-java@v3
15+
with:
16+
distribution: "temurin"
17+
java-version: 17
18+
- name: Gradle caching
19+
uses: gradle/gradle-build-action@v2
20+
with:
21+
gradle-home-cache-cleanup: true
22+
- name: Build
23+
run: ./gradlew :dokkatooGeneratePublicationHtml
24+
- name: Publish to Cloudflare Pages
25+
uses: cloudflare/pages-action@v1
26+
with:
27+
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
28+
accountId: 0a95e814ccf2b6a95d2dc3bea0a4a2b4
29+
projectName: selfie-kdoc
30+
directory: build/dokka/html

0 commit comments

Comments
 (0)