Skip to content

Commit cb545a4

Browse files
authored
Workflow update (#42)
* Workflow update * Updated release
1 parent 4149778 commit cb545a4

File tree

2 files changed

+12
-6
lines changed

2 files changed

+12
-6
lines changed

.github/workflows/release.yml

Lines changed: 12 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,11 @@ name: Release
33

44
on:
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:
@@ -22,7 +25,7 @@ jobs:
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
@@ -59,5 +62,9 @@ jobs:
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/*

pyproject.toml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)