diff --git a/.github/workflows/gradle.yml b/.github/workflows/gradle.yml index 9d80c2d..f42d243 100644 --- a/.github/workflows/gradle.yml +++ b/.github/workflows/gradle.yml @@ -47,6 +47,8 @@ jobs: deploy: runs-on: ubuntu-latest environment: maven-repo-deploy + env: + REPO_TOKEN: ${{ secrets.REPO_TOKEN }} needs: build if: github.ref == 'refs/heads/master' steps: @@ -55,6 +57,6 @@ jobs: with: name: build-files - name: Deploy api with Gradle - run: './gradlew :api:publishMavenJavaPublicationToAjRepoRepository' + run: './gradlew :api:publish' - name: Deploy common with Gradle - run: './gradlew :common:publishMavenJavaPublicationToAjRepoRepository' \ No newline at end of file + run: './gradlew :common:publish' \ No newline at end of file