Skip to content

Commit 9d2d871

Browse files
author
yuzelin
committed
try test
1 parent 29bdff0 commit 9d2d871

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

.github/workflows/create-source-release.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,18 +27,23 @@ jobs:
2727
uses: actions/checkout@v2
2828

2929
- name: Setup GPG
30+
env:
31+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
3032
run: |
3133
mkdir -p ~/.gnupg
32-
echo "${{ secrets.GPG_PRIVATE_KEY }}" | gpg --batch --import --yes
34+
chmod 700 ~/.gnupg
35+
echo $GPG_PRIVATE_KEY | base64 --decode | gpg --batch --import --yes
3336
echo "use-agent" >> ~/.gnupg/gpg.conf
3437
echo "pinentry-program /usr/bin/pinentry" >> ~/.gnupg/gpg-agent.conf
3538
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
3639
3740
- name: Create source release
41+
env:
42+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
3843
run: |
3944
mkdir -p output
4045
chmod +x tools/releasing/create_source_release.sh
41-
OUTPUT_DIR=output GPG_PASSPHRASE=${{ secrets.GPG_PASSPHRASE }} tools/releasing/create_source_release.sh
46+
OUTPUT_DIR=output GPG_PASSPHRASE=$GPG_PASSPHRASE tools/releasing/create_source_release.sh
4247
4348
- name: Upload source release
4449
uses: actions/upload-artifact@v4

0 commit comments

Comments
 (0)