Skip to content

Commit 75ebdc8

Browse files
Sign bot commits
1 parent d8d9495 commit 75ebdc8

File tree

1 file changed

+19
-3
lines changed

1 file changed

+19
-3
lines changed

.github/workflows/publish.yml

Lines changed: 19 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -54,10 +54,26 @@ jobs:
5454
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
5555
run: twine upload dist/*
5656

57+
- name: configure git with the bot credentials
58+
env:
59+
SSH_AUTH_SOCK: /tmp/ssh_agent.sock
60+
run: |
61+
mkdir -p ~/.ssh
62+
echo ${{ secrets.NEXTMVBOT_SIGNING_KEY }} > ~/.ssh/signing.key
63+
echo ${{ secrets.NEXTMVBOT_SSH_KEY }} > ~/.ssh/commit.key
64+
65+
ssh-keyscan github.com >> ~/.ssh/known_hosts
66+
ssh-agent -a $SSH_AUTH_SOCK > /dev/null
67+
ssh-add ~/.ssh/commit.key
68+
69+
git config --global user.name "nextmv-bot"
70+
git config --global user.email "tech+gh-nextmv-bot@nextmv.io"
71+
git config --global url."git@github.com:".insteadOf "https://github.com/"
72+
git config --global gpg.format ssh
73+
git config --global user.signingkey ~/.ssh/signing.key
74+
5775
- name: commit new version
5876
run: |
59-
git config --global user.name "Nextmv Bot"
60-
git config --global user.email "bot@nextmv.io"
6177
git add nextmv/__about__.py
62-
git commit -m "Bump version to $VERSION"
78+
git commit -am "Bump version to $VERSION"
6379
git push

0 commit comments

Comments
 (0)