From 8c33259b7d176732a3cc8681f22ad461ffc3fdb3 Mon Sep 17 00:00:00 2001 From: Sorin Birchi Date: Sun, 25 Aug 2024 16:29:22 +0300 Subject: [PATCH] Update publish.yaml Signed-off-by: Sorin Birchi --- .github/workflows/publish.yaml | 18 +++++++++++++++++- 1 file changed, 17 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 7f5591d..6b8050c 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -7,6 +7,7 @@ on: pull_request: tags: - 'v*' + jobs: pypi-publish: name: upload release to PyPI @@ -15,8 +16,23 @@ jobs: permissions: id-token: write steps: + - name: Checkout code + uses: actions/checkout@v2 + + - name: Set up Python + uses: actions/setup-python@v2 + with: + python-version: '3.x' + + - name: Install dependencies + run: | + python -m pip install --upgrade pip + pip install setuptools wheel + + - name: Build package + run: python setup.py sdist bdist_wheel + - name: Publish package distributions to PyPI uses: pypa/gh-action-pypi-publish@release/v1 with: - username: __token__ password: ${{ secrets.PYPI_API_TOKEN }} \ No newline at end of file