Skip to content

Commit

Permalink
Migrate to artifact publish token
Browse files Browse the repository at this point in the history
  • Loading branch information
Julio Rincon authored and wyrzyk committed Jun 2, 2022
1 parent 7f0ed2b commit 64baadc
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
id-token: write
steps:
- name: Checkout
uses: actions/checkout@v2
Expand All @@ -37,11 +40,15 @@ jobs:
with:
name: pitest-reports
path: build/reports/pitest
- name: Get publish token
id: publish-token
if: github.event.inputs.release != null && github.event.inputs.release != 'None'
uses: atlassian-labs/artifact-publish-token@v1.0.1
- name: Release
if: github.event.inputs.release != null && github.event.inputs.release != 'None'
env:
atlassian_private_username: ${{ secrets.ARTIFACTORY_USERNAME }}
atlassian_private_password: ${{ secrets.ARTIFACTORY_API_KEY }}
atlassian_private_username: ${{ steps.publish-token.outputs.artifactoryUsername }}
atlassian_private_password: ${{ steps.publish-token.outputs.artifactoryApiKey }}
run: |
./gradlew markNextVersion -Prelease.incrementer=increment${{ github.event.inputs.release }} -Prelease.localOnly
./gradlew release -Prelease.customUsername=${{ secrets.REPOSITORY_ACCESS_TOKEN }}
Expand Down

0 comments on commit 64baadc

Please sign in to comment.