You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@baremaps.apache.org by bc...@apache.org on 2024/03/14 10:02:10 UTC
(incubator-baremaps) branch 752-release-automation updated (fdde84eb -> bc76ab9b)
This is an automated email from the ASF dual-hosted git repository.
bchapuis pushed a change to branch 752-release-automation
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git
from fdde84eb Add release workflow
new 53ec6058 Add Apache parent project
new 48abfdf2 Remove the sonatype plugin
new bc76ab9b Adapt the release workflow
The 3 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails. The revisions
listed as "add" were already present in the repository and have only
been added to this reference.
Summary of changes:
.github/workflows/release.yml | 100 ++++++++++++++++++++++++++++++------------
pom.xml | 17 +++----
2 files changed, 78 insertions(+), 39 deletions(-)
(incubator-baremaps) 03/03: Adapt the release workflow
Posted by bc...@apache.org.
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 bc76ab9b7cf2d5633ad3f122d63501e3e7e288b2
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Thu Mar 14 11:02:03 2024 +0100
Adapt the release workflow
---
.github/workflows/release.yml | 100 ++++++++++++++++++++++++++++++------------
1 file changed, 72 insertions(+), 28 deletions(-)
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index 1d6a02f8..6f6aa7dd 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -11,6 +11,7 @@ jobs:
name: Release on GitHub
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
@@ -19,23 +20,36 @@ jobs:
java-version: 17
distribution: temurin
cache: maven
- - name: Build with maven
- run: mvn install -B
+ 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: Show extracted Maven project version
- run: echo ${{ steps.version.outputs.value }}
- - name: Create Release
+ - name: Build project
+ run: mvn install -P release -B
+
+ # Create a GitHub release draft
+ - name: Create GitHub Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
- release_name: Baremaps ${{ steps.version.outputs.value }}
+ release_name: Apache Baremaps ${{ steps.version.outputs.value }} (incubating)
draft: true
prerelease: true
+
+ # Sign, hash, and upload source release
+ - name: Sign and hash source release
+ shell: bash
+ run: |
+ echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import
+ 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"
- name: Upload source release
id: upload-source-release
uses: actions/upload-release-asset@v1
@@ -46,6 +60,34 @@ jobs:
asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz
asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz
asset_content_type: application/x-gzip
+ - name: Upload source release sha512
+ id: upload-source-release-sha512
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.sha512
+ asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.sha512
+ asset_content_type: text/plain
+ - name: Upload source release asc
+ id: upload-source-release-asc
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.asc
+ asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-src.tar.gz.asc
+ asset_content_type: text/plain
+
+ # Sign, hash, and upload binary release
+ - name: Sign and hash source release
+ shell: bash
+ run: |
+ echo "${{ secrets.GPG_PRIVATE_KEY }}" | base64 --decode | gpg --import
+ 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"
- name: Upload binary release
id: upload-binary-release
uses: actions/upload-release-asset@v1
@@ -56,29 +98,31 @@ jobs:
asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz
asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz
asset_content_type: application/x-gzip
+ - name: Upload binary release sha512
+ id: upload-binary-release-sha512
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.sha512
+ asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.sha512
+ asset_content_type: text/plain
+ - name: Upload binary release asc
+ id: upload-binary-release-asc
+ uses: actions/upload-release-asset@v1
+ env:
+ GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
+ with:
+ upload_url: ${{ steps.create_release.outputs.upload_url }}
+ asset_path: ./baremaps-cli/target/apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc
+ asset_name: apache-baremaps-${{ steps.version.outputs.value }}-incubating-bin.tar.gz.asc
+ asset_content_type: text/plain
+
+
-# release-maven:
-# name: Release on Maven Central
-# runs-on: ubuntu-latest
-# steps:
-# - name: Checkout code
-# uses: actions/checkout@v2
-# with:
-# submodules: true
-# - name: Set up Java 11
-# uses: actions/setup-java@v2
-# with:
-# java-version: 11
-# distribution: 'adopt'
-# server-id: maven
-# server-username: MAVEN_USERNAME
-# server-password: MAVEN_CENTRAL_TOKEN
-# gpg-private-key: ${{ secrets.MAVEN_GPG_PRIVATE_KEY }}
-# gpg-passphrase: MAVEN_GPG_PASSPHRASE
-# - name: Build with maven
-# run: mvn package --file pom.xml -P maputnik,release -B
-# - name: Deploy artifacts
-# run: mvn deploy -P maputnik,release -B
+# - name: Publish artifacts
+# run: mvn deploy -P release -B
# env:
# MAVEN_USERNAME: ${{ secrets.MAVEN_USERNAME }}
# MAVEN_CENTRAL_TOKEN: ${{ secrets.MAVEN_CENTRAL_TOKEN }}
(incubator-baremaps) 01/03: Add Apache parent project
Posted by bc...@apache.org.
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 53ec6058820f6c3bde582cd0d411077fe0950ffc
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Thu Mar 14 09:13:16 2024 +0100
Add Apache parent project
---
pom.xml | 6 ++++++
1 file changed, 6 insertions(+)
diff --git a/pom.xml b/pom.xml
index 94379c4f..dba5b9cc 100644
--- a/pom.xml
+++ b/pom.xml
@@ -27,6 +27,12 @@ limitations under the License.
publishing, and operating online maps.</description>
<url>https://github.com/apache/baremaps</url>
+ <parent>
+ <groupId>org.apache</groupId>
+ <artifactId>apache</artifactId>
+ <version>23</version>
+ </parent>
+
<organization>
<name>baremaps</name>
<url>https://www.baremaps.com/</url>
(incubator-baremaps) 02/03: Remove the sonatype plugin
Posted by bc...@apache.org.
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 48abfdf256fce8dc043122da82afd4ac80cbf924
Author: Bertil Chapuis <bc...@gmail.com>
AuthorDate: Thu Mar 14 09:24:28 2024 +0100
Remove the sonatype plugin
---
pom.xml | 11 -----------
1 file changed, 11 deletions(-)
diff --git a/pom.xml b/pom.xml
index dba5b9cc..309d0994 100644
--- a/pom.xml
+++ b/pom.xml
@@ -698,17 +698,6 @@ limitations under the License.
</execution>
</executions>
</plugin>
- <plugin>
- <groupId>org.sonatype.plugins</groupId>
- <artifactId>nexus-staging-maven-plugin</artifactId>
- <version>${version.plugin.nexus-staging-maven-plugin}</version>
- <extensions>true</extensions>
- <configuration>
- <serverId>maven</serverId>
- <nexusUrl>https://oss.sonatype.org/</nexusUrl>
- <autoReleaseAfterClose>false</autoReleaseAfterClose>
- </configuration>
- </plugin>
</plugins>
</build>
</profile>