From c681b2473ca3c4634228f84e547c58454b152b46 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=85=8E=E9=A5=BC=E6=9E=9C=E5=AD=90=E5=8D=B7=E9=B2=A8?= =?UTF-8?q?=E9=B1=BC=E8=BE=A3=E6=A4=92?= Date: Mon, 30 Dec 2024 18:13:28 +0800 Subject: [PATCH] chore: clean up GitHub Actions workflow by removing debug steps and standardizing GPG key import condition - Removed the debug files step from release.yml to streamline the workflow. - Standardized the conditional check for GPG key import to improve clarity and maintainability. --- .github/workflows/release.yml | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index a897c05..763e3f5 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -26,13 +26,6 @@ jobs: lfs: true submodules: recursive - - name: Debug Files - run: | - pwd - ls -la - echo "Current directory contents:" - ls -R - - name: Set up Go uses: actions/setup-go@v4 with: @@ -42,10 +35,10 @@ jobs: - name: Import GPG key id: import_gpg uses: crazy-max/ghaction-import-gpg@v5 + if: "${{ secrets.GPG_PRIVATE_KEY != '' }}" with: gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} passphrase: ${{ secrets.PASSPHRASE }} - if: ${{ secrets.GPG_PRIVATE_KEY != '' }} - name: Run GoReleaser uses: goreleaser/goreleaser-action@v4