This is an automated email from the ASF dual-hosted git repository.

bchapuis pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/incubator-baremaps.git

commit 767b079bc170aeecc787ab6daf04bec524763a09
Author: Bertil Chapuis <[email protected]>
AuthorDate: Tue Jan 7 11:16:32 2025 +0100

    Add a github workflow for pre-releases
---
 .github/workflows/{release.yml => pre-release.yml} | 22 ++++++++--------------
 .github/workflows/release.yml                      |  5 ++---
 2 files changed, 10 insertions(+), 17 deletions(-)

diff --git a/.github/workflows/release.yml b/.github/workflows/pre-release.yml
similarity index 81%
copy from .github/workflows/release.yml
copy to .github/workflows/pre-release.yml
index f69109dd8..5c56857aa 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/pre-release.yml
@@ -3,11 +3,12 @@ name: Release
 on:
   push:
     tags:
-      - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
-
+      - 'v[0-9]+.[0-9]+.[0-9]+-alpha[0-9]+'
+      - 'v[0-9]+.[0-9]+.[0-9]+-beta[0-9]+'
+      - 'v[0-9]+.[0-9]+.[0-9]+-test[0-9]+'
 jobs:
-  publish-candidate:
-    name: Publish candidate
+  publish-pre-release:
+    name: Publish pre-release
     runs-on: ubuntu-latest
     steps:
 
@@ -31,7 +32,7 @@ jobs:
           echo "git_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
           echo "mvn_version=$(mvn -q -Dexec.executable=echo 
-Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_OUTPUT
 
-      - name: Build candidate
+      - name: Build pre-release
         run: mvn install -DskipTests -Dmaven.javadoc.skip=true -B -V
 
       - name: Set up GPG
@@ -41,7 +42,7 @@ jobs:
         env:
           GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
 
-      - name: Sign and hash candidate
+      - name: Sign and hash pre-release
         run: |
           cd ./baremaps-cli/target
           mv apache-baremaps-${{ steps.variables.outputs.mvn_version 
}}-incubating-src.tar.gz apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz
@@ -52,7 +53,7 @@ jobs:
           gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ 
secrets.GPG_KEY_ID }}" --batch --yes --output "./apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz.asc" --detach-sign 
--armor "./apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz"
           cd -
 
-      - name: Publish release candidate on GitHub
+      - name: Publish pre-release on GitHub
         env:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
@@ -63,10 +64,3 @@ jobs:
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz.sha512
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz.asc
-
-      - name: Publish release candidate on Apache SVN
-        run: |
-          mkdir -p ${{ steps.variables.outputs.git_version }}
-          cp ./baremaps-cli/target/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-* ${{ 
steps.variables.outputs.git_version }}
-          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" ${{ 
steps.variables.outputs.git_version }} 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/${{ 
steps.variables.outputs.git_version }}
-          rm -rf ${{ steps.variables.outputs.git_version }}
\ No newline at end of file
diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml
index f69109dd8..55520fec1 100644
--- a/.github/workflows/release.yml
+++ b/.github/workflows/release.yml
@@ -5,7 +5,6 @@ on:
     tags:
       - 'v[0-9]+.[0-9]+.[0-9]+-rc[0-9]+'
 
-jobs:
   publish-candidate:
     name: Publish candidate
     runs-on: ubuntu-latest
@@ -31,7 +30,7 @@ jobs:
           echo "git_version=${GITHUB_REF#refs/tags/v}" >> $GITHUB_OUTPUT
           echo "mvn_version=$(mvn -q -Dexec.executable=echo 
-Dexec.args='${project.version}' --non-recursive exec:exec)" >> $GITHUB_OUTPUT
 
-      - name: Build candidate
+      - name: Build release candidate
         run: mvn install -DskipTests -Dmaven.javadoc.skip=true -B -V
 
       - name: Set up GPG
@@ -41,7 +40,7 @@ jobs:
         env:
           GPG_KEY_ID: ${{ secrets.GPG_KEY_ID }}
 
-      - name: Sign and hash candidate
+      - name: Sign and hash release candidate
         run: |
           cd ./baremaps-cli/target
           mv apache-baremaps-${{ steps.variables.outputs.mvn_version 
}}-incubating-src.tar.gz apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz

Reply via email to