From a9af203863e670f0310d4822d1f0763e5a831ee2 Mon Sep 17 00:00:00 2001 From: Tzoiker Date: Thu, 2 Nov 2023 19:02:21 +0300 Subject: [PATCH] ci: wip --- .github/workflows/publish.yml | 23 ++++++++++++++--------- 1 file changed, 14 insertions(+), 9 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 4dc154f..37fe817 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,9 +1,11 @@ name: publish on: - push: - tags: - - v* + pull_request: + branches: [ main ] +# push: +# tags: +# - v* jobs: publish: @@ -19,7 +21,7 @@ jobs: python-version: '3.11' - name: Fetch tags - run: git fetch --unshallow --tags || true + run: git fetch --unshallow --tags --force || true - name: Install poetry run: python -m pip install poetry @@ -30,9 +32,12 @@ jobs: - name: Install package run: poetry install - - name: Mint token - id: mint - uses: tschm/token-mint-action@v1.0.2 + - name: Build package + run: poetry build - - name: Publish to PyPI - run: poetry publish --build -u __token__ -p '${{ steps.mint.outputs.api-token }}' +# - name: Mint token +# id: mint +# uses: tschm/token-mint-action@v1.0.2 + +# - name: Publish to PyPI +# run: poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}'