Skip to content

Commit af2dd42

Browse files
committed
Update workflows
1 parent 9c08ab9 commit af2dd42

File tree

3 files changed

+45
-20
lines changed

3 files changed

+45
-20
lines changed

.github/workflows/publish.yml

Lines changed: 24 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,26 @@
1-
name: Python package
1+
name: "Publish"
2+
23
on:
3-
release:
4-
types: [ published ]
4+
release:
5+
types: ["published"]
6+
57
jobs:
6-
build:
7-
runs-on: ubuntu-latest
8-
steps:
9-
- uses: actions/checkout@v3
10-
- name: Build and publish to pypi
11-
uses: JRubics/poetry-publish@v2.0
12-
with:
13-
pypi_token: ${{ secrets.PYPI_TOKEN }}
8+
run:
9+
name: "Build and publish release"
10+
runs-on: ubuntu-latest
11+
12+
steps:
13+
- uses: actions/checkout@v4
14+
15+
- name: Set up uv
16+
uses: astral-sh/setup-uv@v6
17+
with:
18+
python-version: '3.12'
19+
enable-cache: true
20+
cache-dependency-glob: uv.lock
21+
22+
- name: Build
23+
run: uv build
24+
25+
- name: Publish
26+
run: uv publish --token ${{ secrets.PYPI_TOKEN }}

.github/workflows/release.yml

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,6 @@ jobs:
1818
uses: actions/checkout@v4.1.7
1919
with:
2020
token: ${{ secrets.RELEASE_GIT_TOKEN }}
21-
- name: Setup uv
22-
uses: astral-sh/setup-uv@v6
23-
with:
24-
python-version: 3.12
2521
- name: Update version in pyproject.toml
2622
id: version_bump
2723
run: |
@@ -53,11 +49,6 @@ jobs:
5349
VERSION=$(awk -F ' = ' '/^version =/ {gsub(/"/, "", $2); print $2}' ./pyproject.toml)
5450
echo "version=$VERSION" >> "$GITHUB_OUTPUT"
5551
shell: bash
56-
- name: Build and Upload Package
57-
run: |
58-
uv pip install twine
59-
uv dist-build
60-
uv twine-upload --user __token__ --password ${{ secrets.PYPI_API_TOKEN }} dist/*
6152
- name: Release New Version
6253
uses: softprops/action-gh-release@v1
6354
with:

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2025 qwizi
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

0 commit comments

Comments
 (0)