Skip to content

Commit b06109f

Browse files
committed
Don't use ::set-env in deploy action
1 parent 891381a commit b06109f

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

.github/workflows/deploy.yml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,13 @@ jobs:
2222
pip install --upgrade wheel
2323
- name: Create wheel
2424
run: python setup.py bdist_wheel --universal
25+
- name: Determine new version string
26+
id: release_version
27+
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
2532
- name: Publish 📦 to PyPI
2633
uses: pypa/gh-action-pypi-publish@release/v1
2734
with:
@@ -33,12 +40,6 @@ jobs:
3340
body_path: changelogs/current.txt
3441
env:
3542
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
36-
- name: Determine new version string
37-
run: echo ::set-env name=RELEASE_VERSION::$(echo ${GITHUB_REF:10})
38-
- name: Archive changelog
39-
run: |
40-
mv changelogs/current.txt changelogs/${{ env.RELEASE_VERSION }}.txt
41-
echo -n -e "\n" > changelogs/current.txt
4243
- name: Push archived changelog
4344
uses: EndBug/add-and-commit@v7
4445
with:

0 commit comments

Comments
 (0)