From 137f84ad0df2615a43fc218673ab2c5fa0170eed Mon Sep 17 00:00:00 2001 From: s3lph Date: Mon, 18 Dec 2023 23:56:58 +0100 Subject: [PATCH] feat: initial commit --- action.yml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 action.yml 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 <