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.
This commit is contained in:
煎饼果子卷鲨鱼辣椒 2024-12-30 18:13:28 +08:00
parent e0db041e93
commit c681b2473c

View File

@ -26,13 +26,6 @@ jobs:
lfs: true lfs: true
submodules: recursive submodules: recursive
- name: Debug Files
run: |
pwd
ls -la
echo "Current directory contents:"
ls -R
- name: Set up Go - name: Set up Go
uses: actions/setup-go@v4 uses: actions/setup-go@v4
with: with:
@ -42,10 +35,10 @@ jobs:
- name: Import GPG key - name: Import GPG key
id: import_gpg id: import_gpg
uses: crazy-max/ghaction-import-gpg@v5 uses: crazy-max/ghaction-import-gpg@v5
if: "${{ secrets.GPG_PRIVATE_KEY != '' }}"
with: with:
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }} gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
passphrase: ${{ secrets.PASSPHRASE }} passphrase: ${{ secrets.PASSPHRASE }}
if: ${{ secrets.GPG_PRIVATE_KEY != '' }}
- name: Run GoReleaser - name: Run GoReleaser
uses: goreleaser/goreleaser-action@v4 uses: goreleaser/goreleaser-action@v4