Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

try on dev #28

Merged
merged 1 commit into from
Feb 26, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions .github/workflows/build-deploy-go.yml
Original file line number Diff line number Diff line change
Expand Up @@ -81,6 +81,14 @@ jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Import GPG Key and List Key IDs
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
run: |
echo "$GPG_PRIVATE_KEY" | gpg --import
# Directly list the keys to see all available information
gpg --list-secret-keys --keyid-format LONG

- name: Import GPG Key
env:
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
Expand All @@ -90,6 +98,13 @@ jobs:
git config --global user.signingkey $GPG_KEY_ID
git config --global commit.gpgsign true


- name: Verify Key ID
run: |
# The following command prints the key IDs of all private keys in the keyring
# It does not expose private key material
gpg --list-secret-keys --keyid-format LONG | grep sec | awk '{print $2}' | cut -d'/' -f2

- uses: actions/checkout@v3
with:
ref: ${{ inputs.branch }}
Expand Down
Loading