Skip to content

Commit

Permalink
Try again to copy CNAME file
Browse files Browse the repository at this point in the history
  • Loading branch information
serras committed Dec 17, 2024
1 parent 98fa00c commit 64260d1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 10 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/githubpages.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,10 @@ jobs:
cache-read-only: ${{ github.ref != 'refs/heads/main' }}

- name: assemble
run: ./gradlew -Pversion=2.0.0 :dokkaGenerate copyCNameFile -Pgithubpages=true
run: ./gradlew -Pversion=2.0.0 :dokkaGenerate -Pgithubpages=true

- name: copy CNAME
run: cp static/CNAME docs

- name: Deploy to gh-pages
uses: peaceiris/actions-gh-pages@v4
Expand Down
9 changes: 0 additions & 9 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -153,15 +153,6 @@ dokka {
}
}

val copyCNameFile = tasks.register<Copy>("copyCNameFile") {
from(layout.projectDirectory.dir("static").file("CNAME"))
into(layout.projectDirectory.dir("docs"))
}

tasks.dokkaGenerate {
dependsOn(copyCNameFile)
}

tasks.getByName("knitPrepare") {
dependsOn(tasks.dokkaGenerate)
}
Expand Down

0 comments on commit 64260d1

Please sign in to comment.