File tree Expand file tree Collapse file tree 1 file changed +43
-0
lines changed
Expand file tree Collapse file tree 1 file changed +43
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Release
2+ on :
3+ push :
4+ branches :
5+ - main
6+ jobs :
7+ release :
8+ name : Release
9+ runs-on : ubuntu-latest
10+ steps :
11+ - name : Check out the repository
12+ uses : actions/checkout@v4
13+ with :
14+ fetch-depth : 0
15+
16+ - name : Set up Python
17+ uses : actions/setup-python@v5
18+ with :
19+ python-version : " 3.13"
20+
21+ - name : Upgrade pip
22+ run : |
23+ pip install --constraint=.github/workflows/constraints.txt pip
24+ pip --version
25+
26+ - name : Install Hatch
27+ run : |
28+ pip install --constraint=.github/workflows/hatch-constraints.txt hatch
29+ hatch --version
30+
31+ - name : Install UV
32+ uses : astral-sh/setup-uv@v5
33+
34+ - name : Build package
35+ run : |
36+ uv build
37+
38+ - name : Publish package on TestPyPI
39+ uses : pypa/gh-action-pypi-publish@release/v1
40+ with :
41+ user : __token__
42+ password : ${{ secrets.TEST_PYPI_TOKEN }}
43+ repository_url : https://test.pypi.org/legacy/
You can’t perform that action at this time.
0 commit comments