Skip to content

Commit 8116a41

Browse files
authored
Update publish workflow
1 parent 218842b commit 8116a41

File tree

1 file changed

+14
-0
lines changed

1 file changed

+14
-0
lines changed

.github/workflows/publish.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,14 @@ jobs:
1010

1111
steps:
1212
- uses: actions/checkout@v1
13+
14+
- name: Get Latest Release
15+
id: latest_version
16+
uses: abatilo/[email protected]
17+
with:
18+
owner: abatilo
19+
repo: release-info-action
20+
1321
- name: Set up Python
1422
uses: actions/setup-python@v1
1523
with:
@@ -19,6 +27,12 @@ jobs:
1927
run: |
2028
python -m pip install --upgrade pip
2129
pip install setuptools wheel twine
30+
31+
- name: Edit init version
32+
working-directory: .github/workflows/
33+
run: |
34+
python edit_version.py --latest ${{ steps.latest_version.outputs.latest_tag }}
35+
2236
- name: Build and publish
2337
env:
2438
TWINE_USERNAME: ${{ secrets.PYPI_USERNAME }}

0 commit comments

Comments
 (0)