From a7d3357bcd6f536073e2b5a1a143200cfee811cf Mon Sep 17 00:00:00 2001 From: Artem Chumachenko Date: Wed, 12 Mar 2025 19:41:13 +0100 Subject: [PATCH 1/3] Update versions --- .github/workflows/upload-to-pypi.yml | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 5e75512b..4b1d565e 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -14,7 +14,7 @@ jobs: steps: - uses: actions/checkout@v4 - name: Set up Python ${{ matrix.python-version }} - uses: actions/setup-python@v2.2.2 + uses: actions/setup-python@v5 with: python-version: ${{ matrix.python-version }} @@ -22,7 +22,7 @@ jobs: run: curl -sSL https://install.python-poetry.org | python3 - - name: Set up cache - uses: actions/cache@v2.1.6 + uses: actions/cache@v4 with: path: .venv key: venv-${{ matrix.python-version }}-${{ hashFiles('pyproject.toml') }}-${{ hashFiles('poetry.lock') }} From f8861402e0b58ffde83ffa7974bde8de6b23c8f2 Mon Sep 17 00:00:00 2001 From: Artem Chumachenko Date: Wed, 12 Mar 2025 19:53:25 +0100 Subject: [PATCH 2/3] test --- .github/workflows/upload-to-pypi.yml | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 4b1d565e..6f4ca611 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -4,6 +4,12 @@ on: release: types: [published] + push: + branches: [ main ] + + pull_request: + branches: [ main ] + jobs: build: runs-on: ubuntu-latest @@ -36,8 +42,11 @@ jobs: run: | poetry build - - name: Publish distribution to PyPI - if: startsWith(github.ref, 'refs/tags') - uses: pypa/gh-action-pypi-publish@release/v1 - with: - password: ${{ secrets.ORANGETIN_PYPI }} + - name: tests + run: echo test + + # - name: Publish distribution to PyPI + # if: startsWith(github.ref, 'refs/tags') + # uses: pypa/gh-action-pypi-publish@release/v1 + # with: + # password: ${{ secrets.ORANGETIN_PYPI }} From 164cac1eb8a59dacae25aee0ffcd6034f63e95e3 Mon Sep 17 00:00:00 2001 From: Artem Chumachenko Date: Wed, 12 Mar 2025 20:01:33 +0100 Subject: [PATCH 3/3] revert --- .github/workflows/upload-to-pypi.yml | 19 +++++-------------- 1 file changed, 5 insertions(+), 14 deletions(-) diff --git a/.github/workflows/upload-to-pypi.yml b/.github/workflows/upload-to-pypi.yml index 6f4ca611..4b1d565e 100644 --- a/.github/workflows/upload-to-pypi.yml +++ b/.github/workflows/upload-to-pypi.yml @@ -4,12 +4,6 @@ on: release: types: [published] - push: - branches: [ main ] - - pull_request: - branches: [ main ] - jobs: build: runs-on: ubuntu-latest @@ -42,11 +36,8 @@ jobs: run: | poetry build - - name: tests - run: echo test - - # - name: Publish distribution to PyPI - # if: startsWith(github.ref, 'refs/tags') - # uses: pypa/gh-action-pypi-publish@release/v1 - # with: - # password: ${{ secrets.ORANGETIN_PYPI }} + - name: Publish distribution to PyPI + if: startsWith(github.ref, 'refs/tags') + uses: pypa/gh-action-pypi-publish@release/v1 + with: + password: ${{ secrets.ORANGETIN_PYPI }}