This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to branch 752-release-automation in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit 955e7afe6d1e7509052e6ad8256fa08aefa36185 Author: Bertil Chapuis <[email protected]> AuthorDate: Thu Mar 14 11:22:08 2024 +0100 disable maven gpg for now --- .github/workflows/release.yml | 38 ++++++++++++++++++++++++++++---------- 1 file changed, 28 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 6f6aa7dd..dbceb169 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -20,16 +20,11 @@ jobs: java-version: 17 distribution: temurin cache: maven - server-id: apache - server-username: ${{ secrets.SERVER_USERNAME }} - server-password: ${{ secrets.SERVER_PASSWORD }} - gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} - gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} - name: Extract version run: echo ::set-output name=value::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) id: version - name: Build project - run: mvn install -P release -B + run: mvn install -B # Create a GitHub release draft - name: Create GitHub Release @@ -47,9 +42,9 @@ jobs: - name: Sign and hash source release shell: bash run: | - echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import + echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch shasum -a 512 "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz" > "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.sha512" - gpg --no-tty --quiet --pinentry-mode loopback --default-key "$GPG_KEY_ID" --batch --yes --passphrase "$GPG_PASSPHRASE" --output "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.asc" --detach-sign --armor "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz" + gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ secrets.GPG_KEY_ID }}" --batch --yes --passphrase "${{ secrets.GPG_PASSPHRASE }}" --output "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.asc" --detach-sign --armor "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz" - name: Upload source release id: upload-source-release uses: actions/upload-release-asset@v1 @@ -85,9 +80,9 @@ jobs: - name: Sign and hash source release shell: bash run: | - echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import + echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import --batch shasum -a 512 "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz" > "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.sha512" - gpg --no-tty --quiet --pinentry-mode loopback --default-key "$GPG_KEY_ID" --batch --yes --passphrase "$GPG_PASSPHRASE" --output "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc" --detach-sign --armor "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz" + gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ secrets.GPG_KEY_ID }}" --batch --yes --passphrase "${{ secrets.GPG_PASSPHRASE }}" --output "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc" --detach-sign --armor "./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz" - name: Upload binary release id: upload-binary-release uses: actions/upload-release-asset@v1 @@ -119,6 +114,29 @@ jobs: asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc asset_content_type: text/plain + release-maven: + name: Release on Maven + runs-on: ubuntu-latest + steps: + # Checkout code, set up Java 17, build project, and extract version + - name: Checkout code + uses: actions/checkout@v3 + - name: Set up Java 17 + uses: actions/setup-java@v3 + with: + java-version: 17 + distribution: temurin + cache: maven + server-id: apache + server-username: ${{ secrets.SERVER_USERNAME }} + server-password: ${{ secrets.SERVER_PASSWORD }} + gpg-private-key: ${{ secrets.GPG_PRIVATE_KEY }} + gpg-passphrase: ${{ secrets.GPG_PASSPHRASE }} + - name: Extract version + run: echo ::set-output name=value::$(mvn -q -Dexec.executable=echo -Dexec.args='${project.version}' --non-recursive exec:exec) + id: version + - name: Build project + run: mvn install -P release -B # - name: Publish artifacts
