Browse Source

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.
pull/122/head
煎饼果子卷鲨鱼辣椒 5 months ago
parent
commit
c681b2473c
  1. 9
      .github/workflows/release.yml

9
.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

Loading…
Cancel
Save