You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@logging.apache.org by sw...@apache.org on 2024/11/27 23:24:48 UTC

(logging-log4cxx) branch master updated: Add signature file to packaged source (#434)

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

swebb2066 pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/logging-log4cxx.git


The following commit(s) were added to refs/heads/master by this push:
     new 8fd72364 Add signature file to packaged source (#434)
8fd72364 is described below

commit 8fd723647540040f7320bd8c14ba37751ab32aaa
Author: Stephen Webb <st...@ieee.org>
AuthorDate: Thu Nov 28 10:24:43 2024 +1100

    Add signature file to packaged source (#434)
---
 .github/workflows/package_code.yml | 19 ++++++++++++++-----
 1 file changed, 14 insertions(+), 5 deletions(-)

diff --git a/.github/workflows/package_code.yml b/.github/workflows/package_code.yml
index aae07227..35305d2c 100644
--- a/.github/workflows/package_code.yml
+++ b/.github/workflows/package_code.yml
@@ -23,13 +23,12 @@ on:
 #    branches:
 #      - master
 
+permissions: read-all
+
 jobs:
   job1:
     name: 'Package code for release'
-    runs-on: ubuntu-20.04
-    timeout-minutes: 38
-    strategy:
-      fail-fast: false
+    runs-on: ubuntu-latest
 
     steps:
     - uses: actions/checkout@v4
@@ -37,6 +36,14 @@ jobs:
         persist-credentials: false # do not persist auth token in the local git config
         path: clean-checkout
 
+    # Using `setup-java` as temporary workaround, since `crazy-max` is not authorized
+    - name: Setup GPG
+      uses: actions/setup-java@b36c23c0d998641eff861008f374ee103c25ac73   # 3.7.0
+      with:
+        distribution: temurin
+        java-version: 17
+        gpg-private-key: ${{ secrets.LOGGING_GPG_SECRET_KEY }}
+
 # Consider using CPack when it supports a white-list for included files
 #    - name: 'Install minimum dependencies'
 #      run: |
@@ -56,14 +63,16 @@ jobs:
         cd ..
         sha512sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha512"
         sha256sum "apache-log4cxx-$VERSION.tar.gz" > "apache-log4cxx-$VERSION.tar.gz.sha256"
+        gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.tar.gz"
         tar xf "apache-log4cxx-$VERSION.tar.gz"
         zip -rm "apache-log4cxx-$VERSION.zip" apache-log4cxx-$VERSION
         sha512sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha512"
         sha256sum "apache-log4cxx-$VERSION.zip" > "apache-log4cxx-$VERSION.zip.sha256"
+        gpg --armor --detach-sign --yes --pinentry-mode error "apache-log4cxx-$VERSION.zip"
 
     - uses: actions/upload-artifact@v4
       if: always()
       with:
-        name: 'Upload release files'
+        name: 'release_files'
         path: |
           apache-log4cxx-*