From 38cab879031b0b577973316698f634e4948b8296 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Daniel=20S=C3=B8renes?= Date: Mon, 22 Apr 2024 13:25:05 +0200 Subject: [PATCH] Use secrets instead of vars for CI/CD --- .github/workflows/release.yml | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 0eb8dc1b..aca6b12e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -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 @@ -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 }} +