mirror of
https://github.com/ImranR98/Obtainium.git
synced 2025-08-18 20:49:30 +02:00
Update release.yml
This commit is contained in:
11
.github/workflows/release.yml
vendored
11
.github/workflows/release.yml
vendored
@@ -13,14 +13,17 @@ jobs:
|
||||
|
||||
- uses: subosito/flutter-action@v2
|
||||
|
||||
- name: Import GPG key
|
||||
id: import_pgp_key
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.PGP_KEY_BASE64 }}
|
||||
|
||||
- name: Temp
|
||||
env:
|
||||
PGP_KEY_BASE64: ${{ secrets.PGP_KEY_BASE64 }}
|
||||
run: |
|
||||
export GPG_TTY=$(tty)
|
||||
echo "$PGP_KEY_BASE64" | base64 -d | gpg --import --passphrase "$PGP_KEY_PASSPHRASE"
|
||||
echo A
|
||||
PGP_KEY_FINGERPRINT="$(gpg --list-keys --with-colon "$(echo "$PGP_KEY_BASE64" | base64 -d | gpg --with-fingerprint --list-packets | grep 'user ID' | awk -F'"' '{print $2}')" | awk -F: '/^pub:/ { print $5 }')"
|
||||
PGP_KEY_FINGERPRINT="${{ steps.import_pgp_key.outputs.tag }}"
|
||||
gpg --batch --yes --delete-secret-keys "$PGP_KEY_FINGERPRINT"
|
||||
gpg --batch --yes --delete-keys "$PGP_KEY_FINGERPRINT"
|
||||
|
||||
|
Reference in New Issue
Block a user