Skip to content

Commit 2a30301

Browse files
hopefully poetry gets release verion now
1 parent 5dbbd01 commit 2a30301

File tree

1 file changed

+11
-9
lines changed

1 file changed

+11
-9
lines changed

.github/workflows/python-publish.yml

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

25-
- name: Setup Poetry
26-
uses: snok/install-poetry@v1
25+
- name: Set up Python 3.10
26+
uses: actions/setup-python@v4
2727
with:
28-
version: "1.8.4"
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
2937

3038
- name: Build release distributions
3139
run: |
3240
poetry build
3341
34-
- name: Upload distributions
35-
uses: actions/upload-artifact@v4
36-
with:
37-
name: release-dists
38-
path: dist/
39-
4042
pypi-publish:
4143
runs-on: ubuntu-latest
4244
needs:

0 commit comments

Comments
 (0)