Skip to content

Commit

Permalink
Add missing env
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanxD committed Aug 13, 2021
1 parent 82fee5d commit 0efacea
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 6 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/gradle-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,9 @@ jobs:

- name: Build with Gradle
run: gradle build
env:
USERNAME: ${{ github.actor }}
TOKEN: ${{ secrets.GITHUB_TOKEN }}

# The USERNAME and TOKEN need to correspond to the credentials environment variables used in
# the publishing section of your build.gradle
Expand Down
2 changes: 1 addition & 1 deletion Kores-DSL/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ apply plugin: 'license'

apply plugin: 'maven-publish'

version '4.1.8.base'
version '4.1.9.base'

jar {
manifest {
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,6 @@ buildscript {
}

group 'com.github.koresframework'
version '4.1.8.base'
version '4.1.9.base'

apply from: 'gradle/common.gradle'
6 changes: 2 additions & 4 deletions gradle/common.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,8 @@ defaultTasks 'licenseFormat', 'build', 'test', 'jar', 'shadowJar'

sourceCompatibility = 16

def userNameProp = project.findProperty("USERNAME")
def patProp = project.findProperty("TOKEN")
def GITHUB_USERNAME = (userNameProp == null || userNameProp.isEmpty()) ? System.getenv("USERNAME") : userNameProp
def GITHUB_PAT = (patProp == null || patProp.isEmpty()) ? System.getenv("TOKEN") : patProp
def GITHUB_USERNAME = project.findProperty("USERNAME") ?: System.getenv("USERNAME")
def GITHUB_PAT = project.findProperty("TOKEN") ?: System.getenv("TOKEN")

repositories {
mavenCentral()
Expand Down

0 comments on commit 0efacea

Please sign in to comment.