Skip to content

Commit

Permalink
Switch to env vars
Browse files Browse the repository at this point in the history
  • Loading branch information
sjohnr committed Oct 10, 2023
1 parent 53075d7 commit fe0b84f
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 2 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ jobs:
- name: Set up JDK 17
uses: spring-io/spring-gradle-build-action@v2
- name: Build with Gradle
run: ./gradlew build --continue -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew build --continue
8 changes: 7 additions & 1 deletion .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,9 @@ jobs:
- name: Set up JDK 17
uses: spring-io/spring-gradle-build-action@v2
- name: Build with Gradle
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew build --continue
deploy:
name: Deploy
Expand All @@ -21,4 +24,7 @@ jobs:
- name: Set up JDK 17
uses: spring-io/spring-gradle-build-action@v2
- name: Deploy artifacts
run: ./gradlew :spring-security-release-plugin:publishArtifacts finalizeDeployArtifacts --stacktrace -PartifactoryUsername="$ARTIFACTORY_USERNAME" -PartifactoryPassword="$ARTIFACTORY_PASSWORD"
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: ./gradlew :spring-security-release-plugin:publishArtifacts finalizeDeployArtifacts --stacktrace

0 comments on commit fe0b84f

Please sign in to comment.