chore: updating fakesecrets.env #457
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 file | |
| on: | |
| workflow_dispatch: | |
| pull_request: | |
| branches: | |
| - main | |
| permissions: read-all | |
| jobs: | |
| sign-file: | |
| 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: GPG sign artifacts # Signing other artifacts | |
| env: | |
| GPG_TTY: /dev/null | |
| HOME: /home/runner | |
| GNUPGHOME: /home/runner/.gnupg | |
| run: | | |
| # Ensure environment variables are exported | |
| export HOME="${HOME}" | |
| export GNUPGHOME="${GNUPGHOME}" | |
| # Sign the file | |
| gpg --detach-sign --no-tty --batch --yes --output README.md.asc --passphrase-file "$GNUPGHOME/passphrase" README.md | |
| # Verify the signature | |
| gpg --verify README.md.asc README.md |