Skip to content

Commit

Permalink
Cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
jdaugherty committed Dec 13, 2024
1 parent 98cf4bd commit 7f017c4
Show file tree
Hide file tree
Showing 3 changed files with 13 additions and 16 deletions.
10 changes: 4 additions & 6 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,8 @@ jobs:
- name: "🔨 Run Build"
id: build
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CHECK_BY_TOKEN: true
SITEMESH_MAVEN_PASSWORD: ${{ secrets.GH_TOKEN }}
CHECK_SITEMESH_REPO: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
Expand Down Expand Up @@ -56,9 +55,8 @@ jobs:
uses: gradle/actions/setup-gradle@v4
- name: "📤 Publish Snapshot to repo.grails.org"
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CHECK_BY_TOKEN: true
SITEMESH_MAVEN_PASSWORD: ${{ secrets.GH_TOKEN }}
CHECK_SITEMESH_REPO: true
DEVELOCITY_ENTERPRISE_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
Expand Down
10 changes: 4 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,9 +34,8 @@ jobs:
with:
arguments: assemble
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CHECK_BY_TOKEN: true
SITEMESH_MAVEN_PASSWORD: ${{ secrets.GH_TOKEN }}
CHECK_SITEMESH_REPO: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
Expand All @@ -54,9 +53,8 @@ jobs:
id: publish
uses: gradle/gradle-build-action@v3
env:
GITHUB_ACTOR: ${{ secrets.GITHUB_ACTOR }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
CHECK_BY_TOKEN: true
SITEMESH_MAVEN_PASSWORD: ${{ secrets.GH_TOKEN }}
CHECK_SITEMESH_REPO: true
DEVELOCITY_ACCESS_KEY: ${{ secrets.GRADLE_ENTERPRISE_ACCESS_KEY }}
DEVELOCITY_BUILD_CACHE_NODE_USER: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_USER }}
DEVELOCITY_BUILD_CACHE_NODE_KEY: ${{ secrets.GRADLE_ENTERPRISE_BUILD_CACHE_NODE_KEY }}
Expand Down
9 changes: 5 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,14 @@ allprojects { prj ->
url = 'https://repository.apache.org/content/repositories/snapshots'
}
}
println "Check 1:${System.getenv("CHECK_BY_TOKEN")} 2:${prj.name == 'grails-plugin-gsp'?:'skip'} 3:${!sitemeshVersion.endsWith('-SNAPSHOT')}"
if (System.getenv("CHECK_BY_TOKEN") == "true" && prj.name == 'grails-plugin-gsp' && !sitemeshVersion.endsWith('-SNAPSHOT')) {

if (System.getenv("CHECK_SITEMESH_REPO") && prj.name == 'grails-plugin-gsp' && !sitemeshVersion.endsWith('-SNAPSHOT')) {
System.out.println("Adding Sitemesh Repo")
maven {
url = 'https://maven.pkg.github.com/codeconsole/grails-plugin-sitemesh3'
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GH_TOKEN")
username = 'DOES_NOT_MATTER'
password = System.getenv("SITEMESH_MAVEN_PASSWORD")
}
}
}
Expand Down

0 comments on commit 7f017c4

Please sign in to comment.