mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-18 20:46:30 +02:00
Pass tokens as command line arguments
This commit is contained in:
parent
db304f9d00
commit
d83c4f1abc
6
.github/workflows/release.yml
vendored
6
.github/workflows/release.yml
vendored
@ -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.
|
||||
|
5
.github/workflows/snapshot.yml
vendored
5
.github/workflows/snapshot.yml
vendored
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user