File tree Expand file tree Collapse file tree 2 files changed +12
-6
lines changed
Expand file tree Collapse file tree 2 files changed +12
-6
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,11 @@ name: Release
33
44on :
55 workflow_dispatch :
6- branches :
7- - main
6+ inputs :
7+ tag :
8+ description : ' Tag or ref to release from (e.g. v0.5.0). Leave empty to use main.'
9+ required : false
10+ default : ' '
811
912 push :
1013 branches :
2225 - name : Checkout branch "main"
2326 uses : actions/checkout@v4
2427 with :
25- ref : ' main'
28+ ref : ${{ github.event.inputs.tag || 'main' }}
2629 fetch-depth : 0
2730 - name : Install Global Dependencies
2831 run : pip install -U pip && pip install uv
5962 prerelease : false
6063 - name : Publish to PyPI
6164 env :
62- UV_PYPI_TOKEN_PYPI : ${{ secrets.PII_CODEX_PYPI_TOKEN }}
63- run : uv publish
65+ TWINE_USERNAME : __token__
66+ TWINE_PASSWORD : ${{ secrets.PII_CODEX_PYPI_TOKEN }}
67+ run : |
68+ python -m pip install --upgrade pip
69+ pip install twine
70+ twine upload dist/*
Original file line number Diff line number Diff line change @@ -49,7 +49,6 @@ dev = [
4949 " spacy>=3.8.7" ,
5050 " presidio-analyzer>=2.2.360" ,
5151 " presidio-anonymizer>=2.2.360" ,
52- " en_core_web_lg @ https://github.com/explosion/spacy-models/releases/download/en_core_web_lg-3.8.0/en_core_web_lg-3.8.0.tar.gz" ,
5352 " tomli>=1.2.0,<3.0.0"
5453]
5554
You can’t perform that action at this time.
0 commit comments