Skip to content

Commit

Permalink
Adding GPG signing for create release
Browse files Browse the repository at this point in the history
  • Loading branch information
trent-codecov committed Oct 6, 2023
1 parent 7d5046b commit 16ed5cf
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions .github/workflows/create_release_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,8 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v4

with:
persist-credentials: false
- name: Import GPG key
id: import-gpg
uses: crazy-max/ghaction-import-gpg@v6
Expand All @@ -23,6 +24,7 @@ jobs:
passphrase: ${{ secrets.RELEASER_PASSPHRASE }}
git_user_signingkey: true
git_commit_gpgsign: true
git_config_global: true

# - name: Initialize mandatory git config
# run: |
Expand All @@ -33,8 +35,13 @@ jobs:
run: git checkout -b release/${{ github.event.inputs.versionName }}
- name: Update version file
id: make-commit
env:
GITHUB_TOKEN: ${{ secrets.CODECOV_RELEASE_PAT }}
GIT_AUTHOR_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_AUTHOR_EMAIL: ${{ steps.import-gpg.outputs.email }}
GIT_COMMITTER_NAME: ${{ steps.import-gpg.outputs.name }}
GIT_COMMITTER_EMAIL: ${{ steps.import-gpg.outputs.email }}
run: |
export GPG_TTY=$(tty)
sed -i 's/version="[0-9]\.[0-9]\.[0-9]"/version="${{ github.event.inputs.versionName }}"/g' setup.py
git add setup.py
git commit -S --message "Prepare release ${{ github.event.inputs.versionName }}"
Expand Down

0 comments on commit 16ed5cf

Please sign in to comment.