Skip to content

Commit

Permalink
Merge pull request #387 from cognitedata/update-workflows
Browse files Browse the repository at this point in the history
Use secrets instead of vars for CI/CD
  • Loading branch information
dsorenes authored Apr 22, 2024
2 parents e953ece + 38cab87 commit 596e866
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
server-id: ossrh
server-username: MAVEN_USERNAME
server-password: MAVEN_CENTRAL_TOKEN
gpg-private-key: ${{ vars.SONATYPE_OSSRH_GPG_PRIVATE_KEY }}
gpg-private-key: ${{ secrets.SONATYPE_OSSRH_GPG_PRIVATE_KEY }}
gpg-passphrase: MAVEN_GPG_PASSPHRASE

- name: Install jq
Expand All @@ -47,6 +47,7 @@ jobs:
run: |
mvn -B clean deploy -Prelease
env:
MAVEN_USERNAME: ${{ vars.SONATYPE_OSSRH_USER }}
MAVEN_CENTRAL_TOKEN: ${{ vars.SONATYPE_OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ vars.SONATYPE_OSSRH_GPG_KEY_PASSPHRASE }}
MAVEN_USERNAME: ${{ secrets.SONATYPE_OSSRH_USER }}
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_OSSRH_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.SONATYPE_OSSRH_GPG_KEY_PASSPHRASE }}

0 comments on commit 596e866

Please sign in to comment.