File tree Expand file tree Collapse file tree 2 files changed +24
-37
lines changed Expand file tree Collapse file tree 2 files changed +24
-37
lines changed Original file line number Diff line number Diff line change 11name : Publish rffickle to PyPI
22
33on :
4- push :
5- tags :
6- - " v*"
4+ release :
5+ types : [created]
76 workflow_dispatch :
87
9- permissions :
10- contents : read
11-
128jobs :
13- publish-release :
14- name : Publish Release Package
9+ publish :
1510 runs-on : ubuntu-latest
16- environment :
17- name : release
18- url : https://pypi.org/project/rffickle/
19- timeout-minutes : 10
2011 steps :
21- - name : 📥 Checkout the repository
12+ - name : 🛎️ Checkout
2213 uses : actions/checkout@v4
23-
14+ with :
15+ ref : ${{ github.head_ref }}
16+
2417 - name : 🐍 Set up Python
2518 uses : actions/setup-python@v5
2619 with :
2720 python-version : ' 3.10'
28-
21+
2922 - name : 📦 Install build dependencies
3023 run : |
3124 python -m pip install --upgrade pip
3225 pip install build twine
33-
34- - name : 🏗️ Build source and wheel distributions
26+
27+ - name : 🏗️ Build package
3528 run : |
3629 python -m build
37- twine check --strict dist/*
38-
30+ twine check dist/*
31+
3932 - name : 🚀 Publish to PyPI
4033 env :
41- TWINE_USERNAME : __token__
42- TWINE_PASSWORD : ${{ secrets.PYPI_API_TOKEN }}
34+ PYPI_USERNAME : ${{ secrets.PYPI_USERNAME }}
35+ PYPI_PASSWORD : ${{ secrets.PYPI_PASSWORD }}
4336 run : |
44- twine upload dist/*
37+ twine upload dist/* -u $PYPI_USERNAME -p $PYPI_PASSWORD --verbose
Original file line number Diff line number Diff line change 88 - ' setup.py'
99 - ' src/**'
1010
11- permissions :
12- contents : read
13-
1411jobs :
1512 publish-test :
16- name : Publish Test Package
1713 runs-on : ubuntu-latest
18- timeout-minutes : 10
1914 steps :
20- - name : 📥 Checkout the repository
15+ - name : 🛎️ Checkout
2116 uses : actions/checkout@v4
22-
17+
2318 - name : 🐍 Set up Python
2419 uses : actions/setup-python@v5
2520 with :
2621 python-version : ' 3.10'
27-
22+
2823 - name : 📦 Install build dependencies
2924 run : |
3025 python -m pip install --upgrade pip
3126 pip install build twine
32-
33- - name : 🏗️ Build source and wheel distributions
27+
28+ - name : 🏗️ Build package
3429 run : |
3530 python -m build
36- twine check --strict dist/*
37-
31+ twine check dist/*
32+
3833 - name : 🚀 Publish to TestPyPI
3934 env :
40- TWINE_USERNAME : __token__
41- TWINE_PASSWORD : ${{ secrets.TEST_PYPI_API_TOKEN }}
35+ PYPI_TEST_PASSWORD : ${{ secrets.PYPI_TEST_PASSWORD }}
4236 run : |
43- twine upload --repository testpypi dist/*
37+ twine upload --repository testpypi dist/* -u __token__ -p $PYPI_TEST_PASSWORD --verbose
You can’t perform that action at this time.
0 commit comments