diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index af244039..0f61d680 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -27,4 +27,7 @@ jobs: - run: chmod +x gradlew - name: Publish + env: + REPO_USERNAME: ${{ secrets.REPO_USERNAME }} + REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} run: ./gradlew :publish -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} diff --git a/.github/workflows/pull-request.yml b/.github/workflows/pull-request.yml index e403160d..c5961bb0 100644 --- a/.github/workflows/pull-request.yml +++ b/.github/workflows/pull-request.yml @@ -9,9 +9,7 @@ env: jobs: build: runs-on: ubuntu-latest - env: - REPO_USERNAME: ${{ secrets.REPO_USERNAME }} - REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} + steps: - uses: actions/checkout@v4 @@ -23,6 +21,9 @@ jobs: - run: chmod +x gradlew - name: Assemble + env: + REPO_USERNAME: ${{ secrets.REPO_USERNAME }} + REPO_PASSWORD: ${{ secrets.REPO_PASSWORD }} run: ./gradlew :assemble -Dorg.gradle.jvmargs=--enable-preview -DREPO_PASSWORD=${{ secrets.REPO_PASSWORD }} -DREPO_USERNAME=${{ secrets.REPO_USERNAME }} - name: Run Compiled Artifact