Skip to content

Commit

Permalink
kdoc.selfie.dev (#41)
Browse files Browse the repository at this point in the history
  • Loading branch information
nedtwigg authored Nov 21, 2023
2 parents e71ea46 + d5e323f commit 5193725
Showing 1 changed file with 30 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/publish-kdoc.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
on: workflow_dispatch

jobs:
publish:
runs-on: ubuntu-latest
permissions:
contents: read
deployments: write
name: Publish to Cloudflare Pages
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install JDK 17
uses: actions/setup-java@v3
with:
distribution: "temurin"
java-version: 17
- name: Gradle caching
uses: gradle/gradle-build-action@v2
with:
gradle-home-cache-cleanup: true
- name: Build
run: ./gradlew :dokkatooGeneratePublicationHtml
- name: Publish to Cloudflare Pages
uses: cloudflare/pages-action@v1
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: 0a95e814ccf2b6a95d2dc3bea0a4a2b4
projectName: selfie-kdoc
directory: build/dokka/html

0 comments on commit 5193725

Please sign in to comment.