diff --git a/.github/workflows/githubpages.yaml b/.github/workflows/githubpages.yaml index 5f60a9232f..8018b619dd 100644 --- a/.github/workflows/githubpages.yaml +++ b/.github/workflows/githubpages.yaml @@ -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 diff --git a/build.gradle.kts b/build.gradle.kts index 62f1796cf7..ea865b2f98 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -153,15 +153,6 @@ dokka { } } -val copyCNameFile = tasks.register("copyCNameFile") { - from(layout.projectDirectory.dir("static").file("CNAME")) - into(layout.projectDirectory.dir("docs")) -} - -tasks.dokkaGenerate { - dependsOn(copyCNameFile) -} - tasks.getByName("knitPrepare") { dependsOn(tasks.dokkaGenerate) }