Pass tokens as command line arguments

This commit is contained in:
comp500 2022-07-16 17:43:54 +01:00
parent db304f9d00
commit d83c4f1abc
2 changed files with 2 additions and 9 deletions

View File

@ -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.

View File

@ -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.