瀏覽代碼

CI: fix private key (#2001)

Loyalsoldier 3 年之前
父節點
當前提交
f3c56b4a95
共有 1 個文件被更改,包括 3 次插入1 次删除
  1. 3 1
      .github/workflows/deb.yml

+ 3 - 1
.github/workflows/deb.yml

@@ -60,9 +60,11 @@ jobs:
 
       - name: Setup Repository
         if: ${{ github.event_name == 'release' || github.event_name == 'workflow_dispatch' }}
+        env:
+          PRIVATE_KEY: ${{ secrets.DEBIAN_GPG_PRIVATE }}
         run: |
           git clone https://github.com/v2fly/debian.git archive
-          echo ${{ secrets.DEBIAN_GPG_PRIVATE }} | base64 -d > private.key
+          echo -n $PRIVATE_KEY | base64 -d > private.key
           gpg --import --batch private.key
           gpg -K
           cd archive