Remove unsupported artifact upload from workflow
This commit is contained in:
@@ -7,7 +7,7 @@ on:
|
|||||||
workflow_dispatch:
|
workflow_dispatch:
|
||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
build:
|
publish:
|
||||||
runs-on: ubuntu-latest
|
runs-on: ubuntu-latest
|
||||||
|
|
||||||
steps:
|
steps:
|
||||||
@@ -32,38 +32,6 @@ jobs:
|
|||||||
run: |
|
run: |
|
||||||
python -m twine check dist/*
|
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
|
- name: Publish to Gitea PyPI registry
|
||||||
env:
|
env:
|
||||||
TWINE_USERNAME: ${{ secrets.GITEA_PACKAGE_USER }}
|
TWINE_USERNAME: ${{ secrets.GITEA_PACKAGE_USER }}
|
||||||
|
|||||||
+3
-1
@@ -2,7 +2,9 @@ Publishing
|
|||||||
==========
|
==========
|
||||||
|
|
||||||
Every pushed commit builds, validates, and publishes the package to the Gitea
|
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
|
The publishing workflow uses ``twine upload --skip-existing`` so repeated
|
||||||
commits with the same package version do not fail. To publish a new package
|
commits with the same package version do not fail. To publish a new package
|
||||||
|
|||||||
Reference in New Issue
Block a user