mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
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:
parent
e0db041e93
commit
c681b2473c
9
.github/workflows/release.yml
vendored
9
.github/workflows/release.yml
vendored
@ -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
|
||||||
|
Loading…
x
Reference in New Issue
Block a user