Skip to content
This repository was archived by the owner on Sep 11, 2023. It is now read-only.

Commit 07270b4

Browse files
committed
Push to PyPi after bump
This ensures that the new version is uploaded to PyPi, not the last version which was happening before
1 parent b884be5 commit 07270b4

File tree

1 file changed

+16
-24
lines changed

1 file changed

+16
-24
lines changed

.github/workflows/release.yaml

Lines changed: 16 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,21 @@ jobs:
2020
with:
2121
github_token: ${{ secrets.GITHUB_TOKEN }}
2222
tags: true
23+
- name: Set up Python
24+
uses: actions/setup-python@v2
25+
with:
26+
python-version: "3.x"
27+
- name: Install dependencies
28+
run: |
29+
python -m pip install --upgrade pip
30+
pip install build
31+
- name: Build package
32+
run: python -m build
33+
- name: Publish package
34+
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
35+
with:
36+
user: __token__
37+
password: ${{ secrets.PYPI_API_TOKEN }}
2338

2439
release:
2540
needs: [build]
@@ -37,32 +52,9 @@ jobs:
3752
env:
3853
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3954
with:
40-
tag_name: ${{ needs.build.outputs.new_tag }}
55+
tag_name: v${{ needs.build.outputs.new_tag }}
4156
release_name: v${{ needs.build.outputs.new_tag }}
4257
body: |
4358
${{ steps.Changelog.outputs.changelog }}
4459
draft: false
4560
prerelease: false
46-
47-
publish:
48-
needs: [build, release]
49-
runs-on: ubuntu-latest
50-
steps:
51-
- uses: actions/checkout@v2
52-
with:
53-
ref: ${{ needs.build.outputs.new_tag }}
54-
- name: Set up Python
55-
uses: actions/setup-python@v2
56-
with:
57-
python-version: "3.x"
58-
- name: Install dependencies
59-
run: |
60-
python -m pip install --upgrade pip
61-
pip install build
62-
- name: Build package
63-
run: python -m build
64-
- name: Publish package
65-
uses: pypa/gh-action-pypi-publish@27b31702a0e7fc50959f5ad993c78deac1bdfc29
66-
with:
67-
user: __token__
68-
password: ${{ secrets.PYPI_API_TOKEN }}

0 commit comments

Comments
 (0)