From 0ee3655149399f5ae9345be8f944214aa4fb4991 Mon Sep 17 00:00:00 2001 From: fbjorn Date: Tue, 6 Feb 2024 17:53:52 +0300 Subject: [PATCH] get rid of temp changes --- .github/workflows/publish.yaml | 23 ++++++----------------- 1 file changed, 6 insertions(+), 17 deletions(-) diff --git a/.github/workflows/publish.yaml b/.github/workflows/publish.yaml index 3319e4b..8f634cb 100644 --- a/.github/workflows/publish.yaml +++ b/.github/workflows/publish.yaml @@ -2,8 +2,6 @@ name: Build and publish to PyPI on: push: - branches: - - "ci/use-trusted-publisher" tags: - "*" @@ -11,7 +9,7 @@ jobs: build_and_publish: name: Build and publish runs-on: ubuntu-latest - environment: testpypi + environment: PyPI permissions: # IMPORTANT: this permission is mandatory for trusted publishing id-token: write @@ -30,23 +28,14 @@ jobs: - name: Install dependencies 🛠 run: poetry install - # - name: Run pre-commit 🤔 - # run: pre-commit run --all-files - # - # - name: Run tests 🌈 - # run: poetry run invoke test + - name: Run pre-commit 🤔 + run: pre-commit run --all-files + + - name: Run tests 🌈 + run: poetry run invoke test - name: Build the package 📦 run: poetry build - name: Publish package to PyPI 🙌 uses: pypa/gh-action-pypi-publish@release/v1 - with: - repository-url: https://test.pypi.org/legacy/ -# - name: Publish package to PyPI 🙌 -# run: | -# set -e -# poetry config http-basic.pypi "__token__" "${PYPI_TOKEN}" -# poetry publish --build -# env: -# PYPI_TOKEN: ${{ secrets.PYPI_TOKEN }}