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 }}'