mirror of
https://github.com/packwiz/packwiz-installer.git
synced 2025-04-19 21:16: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'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
- name: Publish with Gradle
|
- name: Publish with Gradle
|
||||||
run: ./gradlew publish
|
run: ./gradlew publish -Pgithub.token="${{ secrets.GITHUB_TOKEN }}" -Pbunnycdn.token="${{ secrets.BUNNYCDN_TOKEN }}" -Prelease=true
|
||||||
env:
|
|
||||||
ORG_GRADLE_PROJECT_github.token: ${{ Secrets.GITHUB_TOKEN }}
|
|
||||||
ORG_GRADLE_PROJECT_bunnycdn.token: ${{ Secrets.BUNNYCDN_TOKEN }}
|
|
||||||
ORG_GRADLE_PROJECT_release: true
|
|
||||||
- name: Cleanup Gradle Cache
|
- name: Cleanup Gradle Cache
|
||||||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
# 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.
|
# 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'
|
distribution: 'temurin'
|
||||||
cache: gradle
|
cache: gradle
|
||||||
- name: Publish with Gradle
|
- name: Publish with Gradle
|
||||||
run: ./gradlew publish
|
run: ./gradlew publish -Pgithub.token="${{ secrets.GITHUB_TOKEN }}" -Pbunnycdn.token="${{ secrets.BUNNYCDN_TOKEN }}"
|
||||||
env:
|
|
||||||
ORG_GRADLE_PROJECT_github.token: ${{ Secrets.GITHUB_TOKEN }}
|
|
||||||
ORG_GRADLE_PROJECT_bunnycdn.token: ${{ Secrets.BUNNYCDN_TOKEN }}
|
|
||||||
- name: Cleanup Gradle Cache
|
- name: Cleanup Gradle Cache
|
||||||
# Remove some files from the Gradle cache, so they aren't cached by GitHub Actions.
|
# 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.
|
# Restoring these files from a GitHub Actions cache might cause problems for future builds.
|
||||||
|
Loading…
x
Reference in New Issue
Block a user