From 77a7c7450e4791dbed1af2ea659e379ec6ab5de1 Mon Sep 17 00:00:00 2001 From: Maximilian Weichart Date: Wed, 11 Sep 2024 13:31:42 +0200 Subject: [PATCH] Change workflow --- .github/workflows/publish.yml | 26 ++++++-------------------- __init__.py | 1 - 2 files changed, 6 insertions(+), 21 deletions(-) delete mode 100644 __init__.py diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 0bfc316..c56d357 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,20 +1,6 @@ -name: Build and publish python package - -on: - release: - types: [ published ] - -jobs: - publish-service-client-package: - runs-on: ubuntu-latest - permissions: - contents: write - steps: - - name: Publish PyPi package - uses: code-specialist/pypi-poetry-publish@v1 - with: - ACCESS_TOKEN: ${{ secrets.GITHUB_TOKEN }} - PUBLISH_REGISTRY_PASSWORD: ${{ secrets.PYPI_TOKEN }} - PUBLISH_REGISTRY: "https://test.pypi.org/simple/" - BRANCH: "main" - POETRY_VERSION: "1.1.7" +- name: Build and publish to pypi + uses: JRubics/poetry-publish@v2.0 + with: + pypi_token: ${{ secrets.PYPI_TOKEN }} + repository_name: "tetris-gymnasium" + repository_url: "https://test.pypi.org/simple/" diff --git a/__init__.py b/__init__.py deleted file mode 100644 index 8e4032f..0000000 --- a/__init__.py +++ /dev/null @@ -1 +0,0 @@ -__version__='0.1.0'