Skip to content

Commit 5a2975c

Browse files
authored
Merge pull request #66 from sphinx-contrib/deploy-key-release
Make release commit with deploy key
2 parents 23f7cdd + 734a2c6 commit 5a2975c

File tree

1 file changed

+6
-3
lines changed

1 file changed

+6
-3
lines changed

.github/workflows/release.yml

+6-3
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,10 @@ jobs:
2626
contents: write
2727
steps:
2828
# Set things up
29-
- uses: actions/checkout@v2
29+
- uses: actions/checkout@v4
30+
with:
31+
ref: ${{ github.ref }} # Use ref here since we must commit on a branch
32+
ssh-key: ${{secrets.DEPLOY_KEY}}
3033
- name: Set up Python
3134
uses: actions/setup-python@v2
3235
with:
@@ -68,8 +71,8 @@ jobs:
6871
echo "EOF" >> $GITHUB_ENV
6972
- name: Commit and tag
7073
run: |
71-
git config --global user.name "Matt Williams"
72-
git config --global user.email "[email protected].github.com"
74+
git config --global user.name "GitHub Action"
75+
git config --global user.email "action@github.com"
7376
git commit -m "Release ${{ steps.get_version.outputs.version }}"
7477
git tag "${{ steps.get_version.outputs.version }}"
7578
git push --atomic --tags origin HEAD

0 commit comments

Comments
 (0)