Skip to content
Open
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
20 changes: 9 additions & 11 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -82,21 +82,19 @@ jobs:
- docs
- test
runs-on: ubuntu-latest
environment:
name: publish-to-pypi
url: https://pypi.org/p/ufoLib2
permissions:
id-token: write # IMPORTANT: mandatory for trusted publishing.

steps:
- uses: actions/checkout@v4
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.x"
- name: Install dependencies
run: |
pip install build twine
- name: Build and publish
env:
TWINE_USERNAME: __token__
TWINE_PASSWORD: ${{ secrets.PYPI_PASSWORD }}
run: |
python -m build
twine check dist/*
twine upload dist/*
- name: Build
run: pipx run build
- name: Publish package distributions to PyPI
uses: pypa/[email protected]
Loading