This is an automated email from the ASF dual-hosted git repository. bchapuis pushed a commit to tag v0.7.3-rc1 in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
commit 0a8f407a53919ea792ebd3986b78973ae8db7507 Author: Bertil Chapuis <[email protected]> AuthorDate: Wed Mar 20 10:07:29 2024 +0100 Clarify the release instruction and workflow --- .github/workflows/release.yml | 20 ++++++++++---------- RELEASE.md | 5 +++++ 2 files changed, 15 insertions(+), 10 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index d25aef1e..b8a3ad0e 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -27,12 +27,6 @@ jobs: run: mvn install -B # Create a GitHub release draft - - name: Setup GitHub CLI - uses: actions/setup-cli@v1 - with: - version: latest - - name: Authenticate GitHub CLI - run: echo "${{ secrets.GITHUB_TOKEN }}" | gh auth login --with-token - name: Create GitHub Release id: create_release run: | @@ -42,14 +36,18 @@ jobs: --title "Apache Baremaps ${{ steps.version.outputs.value }} (incubating)" \ --repo ${{ github.repository }} \ --generate-notes + env: + GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Sign, hash, and upload source release to GitHub - name: Sign and hash source release shell: bash run: | + cd ./baremaps-cli/target echo "${{ secrets.GPG_PRIVATE_KEY }}" | 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 "${{ 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" + shasum -a 512 "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz" > "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.sha512" + gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ secrets.GPG_KEY_ID }}" --batch --yes --passphrase "${{ secrets.GPG_PASSPHRASE }}" --output "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.asc" --detach-sign --armor "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz" + cd - - name: Upload source release id: upload-source-release uses: actions/upload-release-asset@v1 @@ -85,9 +83,11 @@ jobs: - name: Sign and hash source release shell: bash run: | + cd ./baremaps-cli/target echo "${{ secrets.GPG_PRIVATE_KEY }}" | 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 "${{ 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" + shasum -a 512 "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz" > "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.sha512" + gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ secrets.GPG_KEY_ID }}" --batch --yes --passphrase "${{ secrets.GPG_PASSPHRASE }}" --output "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc" --detach-sign --armor "./apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz" + cd - - name: Upload binary release id: upload-binary-release uses: actions/upload-release-asset@v1 diff --git a/RELEASE.md b/RELEASE.md index bfed078e..5529c5f2 100644 --- a/RELEASE.md +++ b/RELEASE.md @@ -49,6 +49,10 @@ git commit -a -m "Release Baremaps <release>" git tag v<release>-rc<candidate> ``` +> TODO: The following step is not yet fully automated. We need to add secrets and steps to publish the artifacts to the [dev directory](https://dist.apache.org/repos/dist/dev/incubator/baremaps/) (SVN_USERNAME, SVN_PASSWORD) and to the maven repository (NEXUS_USERNAME, NEXUS_PASSWORD). + +```bash + - [ ] Push the tag to the remote repository (this will trigger GitHub Action to build the release candidate, publish the artifacts to the [dev directory](https://dist.apache.org/repos/dist/dev/incubator/baremaps/) of dist.apache.org repository, and draft a release on GitHub): ```bash @@ -60,6 +64,7 @@ git push origin v<release>-rc<candidate> - [ ] If the release candidate is not approved by the community, commit the necessary changes, clean the git history, and go back to step 5. +> TODO: The following step is not yet fully automated. We need to add secrets and steps to publish the artifacts to the [dev directory](https://dist.apache.org/repos/dist/dev/incubator/baremaps/) (SVN_USERNAME, SVN_PASSWORD) and to the maven repository (NEXUS_USERNAME, NEXUS_PASSWORD). - [ ] If the release candidate is approved by the community, tag the release commit with the release version (this will trigger GitHub Action to build the release candidate, publish the artifacts to the [release directory](https://dist.apache.org/repos/dist/release/incubator/baremaps/) of dist.apache.org repository, and draft a release on GitHub):
