diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index f3ac4b9994..8e7e145673 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -38,6 +38,8 @@ jobs: server-id: ossrh server-username: MAVEN_USERNAME server-password: MAVEN_PASSWORD + gpg-private-key: ${{ secrets.OSSRH_GPG_SECRET_KEY }} + gpg-passphrase: OSSRH_GPG_SECRET_KEY_PASSWORD - name: Check tag does not exist yet run: if git rev-list "v${{ github.event.inputs.version }}"; then echo "Tag already exists. Aborting the release process."; exit 1; fi @@ -59,9 +61,6 @@ jobs: - run: mv planetiler-dist/target/*with-deps.jar planetiler.jar - run: sha256sum planetiler.jar > planetiler.jar.sha256 - run: md5sum planetiler.jar > planetiler.jar.md5 - - name: Install GPG Private Key - run: | - echo -n "${{ secrets.OSSRH_GPG_SECRET_KEY }}" | base64 --decode | gpg --batch --import - name: Create Release uses: softprops/action-gh-release@v2 with: