Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
17 changes: 12 additions & 5 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,11 @@ name: Release

on:
workflow_dispatch:
branches:
- main
inputs:
tag:
description: 'Tag or ref to release from (e.g. v0.5.0). Leave empty to use main.'
required: false
default: ''

push:
branches:
Expand All @@ -22,7 +25,7 @@ jobs:
- name: Checkout branch "main"
uses: actions/checkout@v4
with:
ref: 'main'
ref: ${{ github.event.inputs.tag || 'main' }}
fetch-depth: 0
- name: Install Global Dependencies
run: pip install -U pip && pip install uv
Expand Down Expand Up @@ -59,5 +62,9 @@ jobs:
prerelease: false
- name: Publish to PyPI
env:
UV_PYPI_TOKEN_PYPI: ${{ secrets.PII_CODEX_PYPI_TOKEN }}
run: uv publish
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PII_CODEX_PYPI_TOKEN }}
run: |
python -m pip install --upgrade pip
pip install twine
twine upload dist/*
1 change: 0 additions & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,6 @@ dev = [
"spacy>=3.8.7",
"presidio-analyzer>=2.2.360",
"presidio-anonymizer>=2.2.360",
"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",
"tomli>=1.2.0,<3.0.0"
]

Expand Down
Loading