fix: use twine directly

This commit is contained in:
Oskar Manhart 2025-05-17 12:49:20 +02:00
parent 38bf49db6d
commit 32d1b2df2e

View file

@ -12,10 +12,9 @@ jobs:
strategy: strategy:
matrix: matrix:
os: [ubuntu-latest] os: [ubuntu-latest]
environment: pypi
steps: steps:
- run: git clone --depth=1 https://github.com/pygobject/pycairo . - run: git clone --depth=1 https://github.com/pygobject/pycairo --branch v1.28.0 .
- name: Build wheels - name: Build wheels
uses: https://github.com/pypa/cibuildwheel@v2.23.3 uses: https://github.com/pypa/cibuildwheel@v2.23.3
@ -26,12 +25,10 @@ jobs:
CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28 CIBW_MANYLINUX_AARCH64_IMAGE: manylinux_2_28
- name: Publish package distributions to Forgejo - name: Publish package distributions to Forgejo
uses: https://github.com/pypa/gh-action-pypi-publish@release/v1 run: |
with: python3 -m twine upload ./wheelhouse/*
verbose: true env:
repository-url: https://git.weddingfactory.eu/api/packages/cmwedding/pypi/simple TWINE_REPOSITORY_URL: https://git.weddingfactory.eu/api/packages/cmwedding/pypi/simple
user: cmwedding-bot TWINE_USER: cmwedding-bot
password: ${{ secrets.FORGEJO_TOKEN }} TWINE_PASSWORD: ${{ secrets.FORGEJO_TOKEN }}
packages-dir: ./wheelhouse
skip-existing: true