Build(deps): bump actions/setup-dotnet from 4 to 5 #458
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: GPG sign RPM | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| sign-rpm: | |
| runs-on: ${{ matrix.os }} | |
| strategy: | |
| matrix: | |
| os: | |
| - ubuntu-22.04 | |
| # - ubuntu-24.04 | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: setup GPG | |
| uses: aerospike/shared-workflows/.github/actions/[email protected] | |
| with: | |
| gpg-private-key: ${{ secrets.GPG_SECRET_KEY }} | |
| gpg-public-key: ${{ secrets.GPG_PUBLIC_KEY }} | |
| gpg-key-pass: ${{ secrets.GPG_PASS }} | |
| - name: Sign and check rpm # gpg sign and verify rpm packages | |
| env: | |
| GPG_TTY: /dev/null | |
| HOME: /home/runner | |
| GNUPGHOME: /home/runner/.gnupg | |
| run: | | |
| # Ensure environment variables are exported | |
| export HOME="${HOME}" | |
| export GNUPGHOME="${GNUPGHOME}" | |
| # Create symlink for gpg2 (required for rpm signing) | |
| sudo ln -sf $(which gpg) /usr/bin/gpg2 | |
| # Sign the package | |
| rpm --addsign tests/*.rpm | |
| # Verify the signature | |
| rpm --checksig tests/*.rpm |