Skip to content

Commit 551210b

Browse files
pushed codeberg to mirror site: github
1 parent 13f0165 commit 551210b

1 file changed

Lines changed: 4 additions & 28 deletions

File tree

.github/workflows/pypi.yml

Lines changed: 4 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -1,44 +1,20 @@
11
name: Publish version changes to PyPI
2-
32
on:
43
push:
54
paths:
65
- "flix_cli/core/__version__.py"
7-
- ".github/workflows/pypi.yml"
86
- "pyproject.toml"
97

108
jobs:
11-
publish:
12-
runs-on: codeberg-linux-amd64
13-
9+
build:
10+
runs-on: ubuntu-latest
1411
steps:
1512
- name: Checkout
16-
uses: actions/checkout@v4
13+
uses: actions/checkout@v3
1714
with:
1815
fetch-depth: 0
19-
20-
- name: Set up Python
21-
uses: actions/setup-python@v5
22-
with:
23-
python-version: "3.11"
24-
25-
- name: Install build tools
26-
run: |
27-
python -m pip install --upgrade pip
28-
python -m pip install build
29-
30-
- name: Build package
31-
run: python -m build
32-
33-
- name: Check version
34-
run: |
35-
python - <<'EOF'
36-
import flix_cli.core.__version__ as v
37-
print("Version:", v.__version__)
38-
EOF
39-
16+
- run: python3 -m pip install --upgrade build && python3 -m build
4017
- name: Publish package
4118
uses: pypa/gh-action-pypi-publish@release/v1
4219
with:
4320
password: ${{ secrets.PYPI_API_TOKEN }}
44-

0 commit comments

Comments
 (0)