commit 137f84ad0df2615a43fc218673ab2c5fa0170eed Author: s3lph Date: Mon Dec 18 23:56:58 2023 +0100 feat: initial commit diff --git a/action.yml b/action.yml new file mode 100644 index 0000000..f3b7a0a --- /dev/null +++ b/action.yml @@ -0,0 +1,37 @@ +--- + +name: Wheel Package Upload +description: Upload a python wheel package to a Forgejo/Gitea package registry +inputs: + wheel: + description: Path to the wheel package(s). Can contain shell glob expressions. + default: "dist/*.whl" + repository: + description: Forgejo/Gitea PyPI repository URL. + default: "${GITHUB_SERVER_URL}/api/packages/${GITHUB_REPOSITORY_OWNER}/pypi" + username: + description: The username with which to authenticate against the repository. + default: forgejo-actions + password: + description: The password with which to authenticate against the repository. + default: "${GITHUB_TOKEN}" +runs: + using: docker + image: docker.io/library/python:3.11-bookworm + entrypoint: /bin/bash + args: + - -c + - | + pip3 install --break-system-packages twine + cat > ~/.pypirc <