diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index b9163be..2790535 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,3 +22,6 @@ jobs: distribution: 'microsoft' - name: Build run: ./gradlew build + env: + MAVEN_USERNAME: ${{ secrets.REPOSITORY_USER }} + MAVEN_PASSWORD: ${{ secrets.REPOSITORY_PASSWORD }} \ No newline at end of file diff --git a/build.gradle b/build.gradle index ae3040d..24b3d2c 100644 --- a/build.gradle +++ b/build.gradle @@ -28,8 +28,8 @@ repositories { maven { url "https://repository.atlasworld.fr/repository/maven-private/" credentials { - username "$maven_user" - password "$maven_password" + username System.getenv("MAVEN_USERNAME") + password System.getenv("MAVEN_PASSWORD") } } }