You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# This workflows will upload a Python Package using Poetry when a release is created
2
-
# For more information see: https://help.github.com/en/actions/language-and-framework-guides/using-python-with-github-actions#publishing-to-package-registries
3
-
4
1
name: Upload Python Package
5
2
6
3
on:
@@ -10,20 +7,29 @@ on:
10
7
11
8
jobs:
12
9
deploy:
13
-
14
10
runs-on: ubuntu-latest
15
11
16
12
steps:
17
-
- uses: actions/checkout@v4
18
-
- name: Set up Python
19
-
uses: actions/setup-python@v5
20
-
with:
21
-
python-version: '3.x'
22
-
- name: Install Poetry
23
-
run: pip install poetry
24
-
- name: Build and publish
25
-
env:
26
-
POETRY_PYPI_TOKEN_PYPI: ${{ secrets.PYPI_TOKEN }}
27
-
run: |
28
-
poetry build
29
-
poetry publish
13
+
- uses: actions/checkout@v4
14
+
with:
15
+
fetch-depth: 0# fetch full history & tags
16
+
17
+
- name: Set up Python
18
+
uses: actions/setup-python@v5
19
+
with:
20
+
python-version: '3.x'
21
+
22
+
- name: Install Poetry
23
+
run: pip install poetry
24
+
25
+
- name: Install version plugin
26
+
# Ensure that poetry-dynamic-versioning plugin is available to Poetry CLI
0 commit comments