File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ name : Publish to TestPyPI
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+
8+ env :
9+ REPO_ALIAS : rz-sample
10+ TEST_PYPI_URL : https://test.pypi.org/legacy/
11+
12+ jobs :
13+ build-and-publish :
14+ runs-on : ubuntu-latest
15+
16+ steps :
17+ - name : Checkout code
18+ uses : actions/checkout@v4
19+
20+ - name : Set up Python
21+ uses : actions/setup-python@v5
22+ with :
23+ python-version : " 3.11"
24+
25+ - name : Install Poetry
26+ run : |
27+ curl -sSL https://install.python-poetry.org | python3 -
28+ echo "$HOME/.local/bin" >> $GITHUB_PATH
29+
30+ - name : Configure Poetry for TestPyPI
31+ run : |
32+ # Use the variables defined in the 'env' section
33+ poetry config repositories.${{ env.REPO_ALIAS }} ${{ env.TEST_PYPI_URL }}
34+ poetry config pypi-token.${{ env.REPO_ALIAS }} ${{ secrets.TEST_PYPI_TOKEN }}
35+
36+ - name : Build and Publish
37+ run : |
38+ # Automatically uses the alias for the -r flag
39+ poetry publish -r ${{ env.REPO_ALIAS }} --build
Original file line number Diff line number Diff line change @@ -184,4 +184,4 @@ poetry env remove <environment-full-name>
184184- [ Virtualenv Docs] ( https://docs.python.org/3/library/venv.html )
185185- [ Poetry Docs] ( https://python-poetry.org/docs/ )
186186- [ MyPy Docs] ( https://mypy.readthedocs.io/en/stable/running_mypy.html#missing-imports )
187- - [ Useful Poetry commands ] ( https://github.com/recursivezero/python/wiki/POETRY_COMMANDS.md )
187+ - [ Useful Poetry Commands ] ( https://github.com/recursivezero/python/wiki/POETRY_COMMANDS )
Original file line number Diff line number Diff line change 11[project ]
22name = " rz-sample"
3- version = " 1.2.1 "
3+ version = " 1.2.2 "
44description = " A python template for fastapi and streamlit projects."
55authors = [{ name = " sample" , email = " recursivezero@outlook.com" }]
66license = " MIT"
You can’t perform that action at this time.
0 commit comments