From 6b2e649c9d4fb857c52987ede56b22af43e559bb Mon Sep 17 00:00:00 2001 From: Leif Gehrmann Date: Mon, 24 Jun 2024 23:45:07 +0100 Subject: [PATCH] Fix publish action --- .github/workflows/publish.yml | 18 ++++++++++++++---- 1 file changed, 14 insertions(+), 4 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index be7bc3a..230b435 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,16 +1,26 @@ +name: Publish + +on: + workflow_dispatch: + jobs: pypi-publish: - name: upload release to PyPI runs-on: ubuntu-latest environment: release permissions: id-token: write steps: + - uses: actions/checkout@v4 + - name: Set up Python + uses: actions/setup-python@v4 + with: + python-version: "3.12" + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install -r requirements.txt - name: Create dist run: | - pwd - ls -l . python setup.py sdist - ls -l . - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1