diff --git a/.gitea/workflows/publish.yml b/.gitea/workflows/publish.yml index dc3ae3e..1329dc9 100644 --- a/.gitea/workflows/publish.yml +++ b/.gitea/workflows/publish.yml @@ -7,7 +7,7 @@ on: workflow_dispatch: jobs: - build: + publish: runs-on: ubuntu-latest steps: @@ -32,38 +32,6 @@ jobs: run: | python -m twine check dist/* - - name: Upload distribution artifact - uses: actions/upload-artifact@v4 - with: - name: dist - path: dist/* - - publish: - runs-on: ubuntu-latest - needs: build - - steps: - - name: Checkout - uses: actions/checkout@v4 - - - name: Set up Python - uses: actions/setup-python@v5 - with: - python-version: "3.11" - - - name: Install publish tools - run: | - python -m pip install --upgrade pip - python -m pip install build twine - - - name: Build package - run: | - python -m build - - - name: Check package - run: | - python -m twine check dist/* - - name: Publish to Gitea PyPI registry env: TWINE_USERNAME: ${{ secrets.GITEA_PACKAGE_USER }} diff --git a/doc/publishing.rst b/doc/publishing.rst index b647183..78bcd37 100644 --- a/doc/publishing.rst +++ b/doc/publishing.rst @@ -2,7 +2,9 @@ Publishing ========== Every pushed commit builds, validates, and publishes the package to the Gitea -PyPI-compatible package registry. +PyPI-compatible package registry. The workflow intentionally does not use +``actions/upload-artifact`` because current Gitea Actions runners do not support +the GitHub artifact API required by ``upload-artifact@v4``. The publishing workflow uses ``twine upload --skip-existing`` so repeated commits with the same package version do not fail. To publish a new package