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 : Release Package
2+
3+ # need to setup:
4+ # secrets.PYPI_API_TOKEN (See: https://pypi.org/help/#apitoken)
5+ # secrets.TESTPYPI_API_TOKEN (See: https://test.pypi.org/help/#apitoken)
6+
7+ on :
8+ schedule :
9+ - cron : 0 0 * * *
10+ workflow_dispatch :
11+
12+ jobs :
13+ release :
14+ runs-on : ubuntu-latest
15+ steps :
16+ - uses : actions/checkout@v4
17+ - name : Install poetry
18+ run : pipx install poetry
19+ - uses : actions/setup-python@v5
20+ with :
21+ python-version : ' 3.13'
22+ cache : poetry
23+ - name : Setup Poetry to publish
24+ run : |
25+ poetry install --no-interaction
26+ poetry config pypi-token.testpypi '${{ secrets.TESTPYPI_API_TOKEN }}'
27+ poetry config pypi-token.pypi '${{ secrets.PYPI_API_TOKEN }}'
28+ - name : Publish package
29+ run : python publish.py
Load Diff This file was deleted.
You can’t perform that action at this time.
0 commit comments