Skip to content

Commit a02fd8b

Browse files
authored
Merge pull request #724 from staticdev/ci/readd-dev-release
Readd dev release
2 parents ba38596 + 9c5cece commit a02fd8b

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/release-dev.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
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/

0 commit comments

Comments
 (0)