Skip to content

Commit

Permalink
Cleanups
Browse files Browse the repository at this point in the history
  • Loading branch information
Goooler committed Dec 10, 2024
1 parent 9ca7fb9 commit 7cad33a
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 10 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,10 +32,10 @@ jobs:
# Disable CC due to https://github.com/gradle/gradle/issues/22779
- run: ./gradlew releaseAll --no-configuration-cache
env:
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_SECRET }}
GITHUB_USER: ${{ github.repository_owner }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
ORG_GRADLE_PROJECT_mavenCentralUsername: ${{ secrets.OSSRH_USER }}
ORG_GRADLE_PROJECT_mavenCentralPassword: ${{ secrets.OSSRH_PASSWORD }}
ORG_GRADLE_PROJECT_signingInMemoryKey: ${{ secrets.GPG_KEY }}
Expand Down
15 changes: 7 additions & 8 deletions build-logic/src/main/kotlin/shadow.convention.deploy.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,25 +1,18 @@
import gradle.kotlin.dsl.accessors._a257bd6ce496772590aa10dcded4cc98.dokkaHtml
import org.apache.tools.ant.filters.ReplaceTokens

plugins {
id("org.ajoberstar.git-publish")
id("com.github.node-gradle.node")
}

val yarnBuild = tasks.named("yarn_build") {
dependsOn(tasks.yarn)
inputs.files(fileTree("src/docs"))
outputs.dir(file("build/site"))
}

gitPublish {
repoUri = "https://github.com/GradleUp/shadow.git"
branch = "gh-pages"
username = providers.environmentVariable("GITHUB_USER")
password = providers.environmentVariable("GITHUB_TOKEN")
contents {
from(yarnBuild)
from(tasks.dokkaHtml) {
from(tasks.named("dokkaHtml")) {
into("api")
}
filter<ReplaceTokens>(
Expand All @@ -30,3 +23,9 @@ gitPublish {
)
}
}

val yarnBuild = tasks.named("yarn_build") {
dependsOn(tasks.yarn)
inputs.files(fileTree("src/docs"))
outputs.dir(file("build/site"))
}

0 comments on commit 7cad33a

Please sign in to comment.