Skip to content

Commit

Permalink
Publish to artifactory from build
Browse files Browse the repository at this point in the history
- Add publish job to ci workflow
- Relates #165
  • Loading branch information
jvalkeal committed Mar 21, 2023
1 parent a490061 commit 985d507
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.repository == 'spring-projects/spring-security-kerberos' }}
strategy:
fail-fast: false
matrix:
Expand Down Expand Up @@ -36,3 +37,20 @@ jobs:
path: |
*/build/reports
spring-security-kerberos-samples/*/build/reports
publish:
runs-on: ubuntu-latest
needs: [build]
steps:
- uses: actions/checkout@v3
- uses: actions/setup-java@v3
with:
distribution: adopt
java-version: 17
- name: Build
env:
ARTIFACTORY_USERNAME: ${{ secrets.ARTIFACTORY_USERNAME }}
ARTIFACTORY_PASSWORD: ${{ secrets.ARTIFACTORY_PASSWORD }}
run: |
./gradlew build artifactoryPublish \
-PartifactoryUsername="$ARTIFACTORY_USERNAME" \
-PartifactoryPassword="$ARTIFACTORY_PASSWORD"

0 comments on commit 985d507

Please sign in to comment.