Skip to content

Commit 19c8865

Browse files
revert to old pulish workflow file
1 parent 2a30301 commit 19c8865

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

.github/workflows/python-publish.yml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -22,22 +22,21 @@ jobs:
2222
steps:
2323
- uses: actions/checkout@v4
2424

25-
- name: Set up Python 3.10
26-
uses: actions/setup-python@v4
25+
- uses: actions/setup-python@v5
2726
with:
28-
python-version: '3.10'
29-
30-
- name: Install Poetry
31-
uses: snok/[email protected]
32-
env:
33-
ACTIONS_ALLOW_UNSECURE_COMMANDS: 'true'
34-
35-
- name: Get release version
36-
run: echo "RELEASE_VERSION=$(poetry version | awk '{print $2}')" >> $GITHUB_ENV
27+
python-version: "3.x"
3728

3829
- name: Build release distributions
3930
run: |
40-
poetry build
31+
# NOTE: put your own distribution build steps here.
32+
python -m pip install build
33+
python -m build
34+
35+
- name: Upload distributions
36+
uses: actions/upload-artifact@v4
37+
with:
38+
name: release-dists
39+
path: dist/
4140

4241
pypi-publish:
4342
runs-on: ubuntu-latest
@@ -66,5 +65,6 @@ jobs:
6665
path: dist/
6766

6867
- name: Publish release distributions to PyPI
69-
run: |
70-
poetry publish
68+
uses: pypa/gh-action-pypi-publish@release/v1
69+
with:
70+
packages-dir: dist/

0 commit comments

Comments
 (0)