mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 04:22:06 +08:00
chore: enhance GitHub Actions workflows with GPG key input for signing releases
- Added an optional input for GPG private key in release.yml to support signing releases. - Updated the conditional check for GPG key import to utilize the new input, improving flexibility and maintainability. - Ensured that the auto-tag workflow inherits secrets for better security practices.
This commit is contained in:
parent
a8765f85a7
commit
01a932f3e5
2
.github/workflows/auto-tag.yml
vendored
2
.github/workflows/auto-tag.yml
vendored
@ -51,4 +51,6 @@ jobs:
|
||||
needs: auto-tag
|
||||
if: success()
|
||||
uses: ./.github/workflows/release.yml
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
secrets: inherit
|
||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -40,9 +40,9 @@ jobs:
|
||||
- name: Import GPG key
|
||||
id: import_gpg
|
||||
uses: crazy-max/ghaction-import-gpg@v6
|
||||
if: "${{ secrets.GPG_PRIVATE_KEY != '' }}"
|
||||
if: inputs.gpg_private_key != ''
|
||||
with:
|
||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||
gpg_private_key: ${{ inputs.gpg_private_key }}
|
||||
passphrase: ${{ secrets.PASSPHRASE }}
|
||||
|
||||
- name: Run GoReleaser
|
||||
|
Loading…
x
Reference in New Issue
Block a user