File tree Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Expand file tree Collapse file tree 1 file changed +34
-0
lines changed Original file line number Diff line number Diff line change 1+ name : Test Release to test.pypi.org
2+
3+ on :
4+ workflow_dispatch :
5+ inputs :
6+ version :
7+ description : ' Version to publish'
8+ required : true
9+
10+
11+ jobs :
12+ release-test-wheel :
13+ runs-on : ubuntu-latest
14+ steps :
15+ - uses : actions/checkout@v3
16+ - name : Setup Fresh Virtual Environment
17+ run : |
18+ pip install --upgrade pip
19+ python3.10 -m venv env
20+ export PATH=$PATH:/home/docker/.local/bin
21+ source env/bin/activate
22+ echo "VIRTUAL ENV:" $VIRTUAL_ENV
23+ - name : Install Packaging Dependencies
24+ run : pip install build twine
25+ - name : Package
26+ env :
27+ VERSION : ${{ github.event.inputs.version }}
28+ run : bash scripts/wheel.sh $(echo $VERSION | sed 's/^refs\/tags\/v//')
29+ - name : Publish
30+ env :
31+ TWINE_USERNAME : __token__
32+ TWINE_PASSWORD : ${{ secrets.TEST_PYPI_TOKEN }}
33+ VERSION : ${{ github.event.inputs.version }}
34+ run : bash scripts/pypi-release.sh lmql-$(echo $VERSION | sed 's/^refs\/tags\/v//') --production
You can’t perform that action at this time.
0 commit comments