Skip to content

Commit cb06a0e

Browse files
authored
Add git user sign key (#17)
1 parent 414185b commit cb06a0e

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,13 @@ jobs:
150150
with:
151151
gpg_private_key: ${{ secrets.GPG_PRIVATE_KEY }}
152152
passphrase: ${{ secrets.GPG_PASSPHRASE }}
153+
git_user_signingkey: true
154+
git_tag_gpgsign: true
153155

154156
- name: Create signed tag for this repository
155157
run: |
156-
# Create and sign the same tag locally for this repository
157-
git tag -s ${{ steps.tag.outputs.tag_name }} -m "Release ${{ steps.tag.outputs.tag_name }}" --force
158+
# Create tag (will be automatically signed due to git_tag_gpgsign: true)
159+
git tag ${{ steps.tag.outputs.tag_name }} -m "Release ${{ steps.tag.outputs.tag_name }}" --force
158160
159161
- name: Create Release
160162
uses: softprops/action-gh-release@v2

0 commit comments

Comments
 (0)