-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: sign published tags and commits
- Loading branch information
Showing
1 changed file
with
6 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -34,9 +34,13 @@ jobs: | |
full_version: ${{ steps.release.outputs.major }}.${{ steps.release.outputs.minor }}.${{ steps.release.outputs.patch }} | ||
tag_name: ${{ steps.release.outputs.tag_name }} | ||
run: | | ||
gpg --allow-secret-key-import --import <<< "${{ secrets.PRIVATE_SIGNING_KEY }}" | ||
git remote set-url origin https://github-actions:${GITHUB_TOKEN}@github.com/${GITHUB_REPOSITORY} | ||
git config --global user.name "${GITHUB_ACTOR}" | ||
git config --global user.email "${GITHUB_ACTOR}@users.noreply.github.com" | ||
git config commit.gpgsign true | ||
git config tag.gpgsign true | ||
git config --global user.name ueokande | ||
git config --global user.email [email protected] | ||
git config --global user.signingkey 7F94715D031FDE95 | ||
git add . | ||
git commit --allow-empty --message "Release v${full_version} at ${GITHUB_SHA}" | ||
|