File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11name : Publish version changes to PyPI
2-
32on :
43 push :
54 paths :
65 - " flix_cli/core/__version__.py"
7- - " .github/workflows/pypi.yml"
86 - " pyproject.toml"
97
108jobs :
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-
You can’t perform that action at this time.
0 commit comments