Skip to content

Commit c1f118e

Browse files
committed
Fix the deploy action
1 parent 66b3351 commit c1f118e

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,6 @@ jobs:
2525
- name: Determine new version string
2626
id: release_version
2727
run: echo ::set-output name=VERSION::$(echo ${GITHUB_REF:10})
28-
- name: Archive changelog
29-
run: |
30-
mv changelogs/current.txt changelogs/${{ steps.release_version.VERSION }}.txt
31-
echo -n -e "\n" > changelogs/current.txt
3228
- name: Publish 📦 to PyPI
3329
uses: pypa/gh-action-pypi-publish@release/v1
3430
with:
@@ -40,10 +36,15 @@ jobs:
4036
body_path: changelogs/current.txt
4137
env:
4238
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
39+
- name: Archive changelog
40+
run: |
41+
mv changelogs/current.txt changelogs/${{ steps.release_version.VERSION }}.txt
42+
echo -n -e "\n" > changelogs/current.txt
4343
- name: Push archived changelog
4444
uses: EndBug/add-and-commit@v7
4545
with:
4646
add: changelogs
4747
author_name: Github Actions
4848
author_email: automations@github-actions.com
49+
branch: master
4950
message: 'Archive changelog'

0 commit comments

Comments
 (0)