Skip to content

Commit e6abfb2

Browse files
authored
Merge pull request #90 from heroku/refactor-annotated-tag
refactor: switch to annotated git tag
2 parents 45764fd + 10f1b2b commit e6abfb2

File tree

1 file changed

+1
-13
lines changed

1 file changed

+1
-13
lines changed

.github/workflows/tag-and-release.yml

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -47,22 +47,15 @@ jobs:
4747
echo "version=$VERSION" >> $GITHUB_OUTPUT
4848
echo "Extracted version: $VERSION"
4949
50-
- name: Set up GPG
51-
run: |
52-
echo "${{ secrets.GPG_PASSPHRASE }}" | gpg --batch --yes --pinentry-mode loopback --passphrase-fd 0 --import <(echo "${{ secrets.GPG_PRIVATE_KEY }}")
53-
5450
- name: Configure Git
5551
run: |
5652
git config --global user.name "GitHub Actions"
5753
git config --global user.email "github-actions@github.com"
58-
git config --global user.signingkey ${{ secrets.GPG_KEY_ID }}
59-
git config --global commit.gpgsign true
60-
git config --global tag.gpgsign true
6154
6255
- name: Create and push Github tag
6356
run: |
6457
echo "Creating tag v${{ steps.version.outputs.version }}"
65-
echo "${{ secrets.GPG_PASSPHRASE }}" | git tag -s "v${{ steps.version.outputs.version }}" -m "Release v${{ steps.version.outputs.version }}"
58+
git tag -a "v${{ steps.version.outputs.version }}" -m "Release v${{ steps.version.outputs.version }}"
6659
echo "Pushing tag to origin..."
6760
git push origin "v${{ steps.version.outputs.version }}"
6861
echo "Verifying tag was pushed:"
@@ -83,8 +76,3 @@ jobs:
8376
dist/*.whl
8477
dist/*.tar.gz
8578
generate_release_notes: true
86-
87-
- name: Cleanup GPG keys
88-
run: |
89-
gpg --delete-secret-keys --batch --yes "${{ secrets.GPG_KEY_ID }}"
90-
gpg --delete-keys --batch --yes "${{ secrets.GPG_KEY_ID }}"

0 commit comments

Comments
 (0)