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

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

commit f5baf5a0220358bf82c763105671a18574d9cc74
Author: Bertil Chapuis <[email protected]>
AuthorDate: Sat Sep 7 01:20:53 2024 +0200

    Adapt workflow
---
 .github/workflows/candidate.yml | 30 ++++++++++++++++++------------
 1 file changed, 18 insertions(+), 12 deletions(-)

diff --git a/.github/workflows/candidate.yml b/.github/workflows/candidate.yml
index 6f025f29..ae4b3ccd 100644
--- a/.github/workflows/candidate.yml
+++ b/.github/workflows/candidate.yml
@@ -27,15 +27,18 @@ jobs:
 
       - name: Extract variables
         id: variables
+        shell: bash
         run: |
           echo "git_tag=${GITHUB_REF#refs/tags/}" >> $GITHUB_OUTPUT
           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
-        run: mvn install -B
+        shell: bash
+        run: mvn install -DskipTests -Dmaven.javadoc.skip=true -B -V
 
       - name: Set up GPG
+        shell: bash
         run: |
           echo "${{ secrets.BAREMAPS_GPG_SECRET_KEY }}" | gpg --batch --import
           gpg --list-keys
@@ -46,38 +49,41 @@ jobs:
         shell: bash
         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
           shasum -a 512 "./apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz" > 
"./apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz.sha512"
           gpg --no-tty --quiet --pinentry-mode loopback --default-key "${{ 
secrets.GPG_KEY_ID }}" --batch --yes --output "./apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz.asc" --detach-sign 
--armor "./apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz"
-
           mv apache-baremaps-${{ steps.variables.outputs.mvn_version 
}}-incubating-bin.tar.gz apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz
           shasum -a 512 "./apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz" > 
"./apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz.sha512"
           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
+        shell: bash
         env:
           GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
         run: |
           gh release create "${{ steps.variables.outputs.git_tag }}" --draft 
--prerelease --title "Apache Baremaps ${{ steps.variables.outputs.git_version 
}} (incubating)" --repo ${{ github.repository }} --generate-notes
-          
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz.sha512
           gh release upload --clobber "${{ steps.variables.outputs.git_tag }}" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz.asc
-          
           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: |
-          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz
-
       - name: Publish candidate snapshots on Apache Nexus
+        shell: bash
         env:
-          SERVER_USERNAME: ${{ secrets.NEXUS_USER }}
-          SERVER_PASSWORD: ${{ secrets.NEXUS_PW }}
+          NEXUS_USER: ${{ secrets.NEXUS_USER }}
+          NEXUS_PW: ${{ secrets.NEXUS_PW }}
         run: |
-          mvn deploy
+          ./mvnw deploy -DskipTests -Dmaven.javadoc.skip=true -B -V
 
+      - name: Publish release candidate on Apache SVN
+        shell: bash
+        run: |
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz.sha512 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz.sha512
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-src.tar.gz.asc 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-src.tar.gz.asc
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz.sha512 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz.sha512
+          svn --username "${{ secrets.INCUBATOR_SVN_DEV_USERNAME }}" 
--password "${{ secrets.INCUBATOR_SVN_DEV_PASSWORD }}" import -m "Apache 
Baremaps ${{ steps.variables.outputs.git_version }} (incubating)" 
./baremaps-cli/target/apache-baremaps-${{ steps.variables.outputs.git_version 
}}-incubating-bin.tar.gz.asc 
https://dist.apache.org/repos/dist/dev/incubator/baremaps/apache-baremaps-${{ 
steps.variables.outputs.git_version }}-incubating-bin.tar.gz.asc
\ No newline at end of file

Reply via email to