diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index fdf6d1c..7b255c7 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,11 +20,7 @@ jobs: distribution: 'temurin' cache: gradle - name: Publish with Gradle - run: ./gradlew publish - env: - ORG_GRADLE_PROJECT_github.token: ${{ Secrets.GITHUB_TOKEN }} - ORG_GRADLE_PROJECT_bunnycdn.token: ${{ Secrets.BUNNYCDN_TOKEN }} - ORG_GRADLE_PROJECT_release: true + run: ./gradlew publish -Pgithub.token="${{ secrets.GITHUB_TOKEN }}" -Pbunnycdn.token="${{ secrets.BUNNYCDN_TOKEN }}" -Prelease=true - name: Cleanup Gradle Cache # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. # Restoring these files from a GitHub Actions cache might cause problems for future builds. diff --git a/.github/workflows/snapshot.yml b/.github/workflows/snapshot.yml index 1c75712..e519b12 100644 --- a/.github/workflows/snapshot.yml +++ b/.github/workflows/snapshot.yml @@ -17,10 +17,7 @@ jobs: distribution: 'temurin' cache: gradle - name: Publish with Gradle - run: ./gradlew publish - env: - ORG_GRADLE_PROJECT_github.token: ${{ Secrets.GITHUB_TOKEN }} - ORG_GRADLE_PROJECT_bunnycdn.token: ${{ Secrets.BUNNYCDN_TOKEN }} + run: ./gradlew publish -Pgithub.token="${{ secrets.GITHUB_TOKEN }}" -Pbunnycdn.token="${{ secrets.BUNNYCDN_TOKEN }}" - name: Cleanup Gradle Cache # Remove some files from the Gradle cache, so they aren't cached by GitHub Actions. # Restoring these files from a GitHub Actions cache might cause problems for future builds.