mirror of
https://github.com/yuaotian/go-cursor-help.git
synced 2025-06-08 12:32: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
|
needs: auto-tag
|
||||||
if: success()
|
if: success()
|
||||||
uses: ./.github/workflows/release.yml
|
uses: ./.github/workflows/release.yml
|
||||||
|
with:
|
||||||
|
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
||||||
secrets: inherit
|
secrets: inherit
|
||||||
|
4
.github/workflows/release.yml
vendored
4
.github/workflows/release.yml
vendored
@ -40,9 +40,9 @@ jobs:
|
|||||||
- name: Import GPG key
|
- name: Import GPG key
|
||||||
id: import_gpg
|
id: import_gpg
|
||||||
uses: crazy-max/ghaction-import-gpg@v6
|
uses: crazy-max/ghaction-import-gpg@v6
|
||||||
if: "${{ secrets.GPG_PRIVATE_KEY != '' }}"
|
if: inputs.gpg_private_key != ''
|
||||||
with:
|
with:
|
||||||
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
|
gpg_private_key: ${{ inputs.gpg_private_key }}
|
||||||
passphrase: ${{ secrets.PASSPHRASE }}
|
passphrase: ${{ secrets.PASSPHRASE }}
|
||||||
|
|
||||||
- name: Run GoReleaser
|
- name: Run GoReleaser
|
||||||
|
Loading…
x
Reference in New Issue
Block a user