From ac196b368c2b17d7a2d19bde79419b5e9eaddeb8 Mon Sep 17 00:00:00 2001 From: Tzoiker Date: Thu, 2 Nov 2023 19:05:02 +0300 Subject: [PATCH] ci: fix publish --- .github/workflows/publish.yml | 18 ++++++++---------- 1 file changed, 8 insertions(+), 10 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index 37fe817..5a498e5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -1,11 +1,9 @@ name: publish on: - pull_request: - branches: [ main ] -# push: -# tags: -# - v* + push: + tags: + - v* jobs: publish: @@ -35,9 +33,9 @@ jobs: - name: Build package run: poetry build -# - name: Mint token -# id: mint -# uses: tschm/token-mint-action@v1.0.2 + - 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 }}' + - name: Publish to PyPI + run: poetry publish -u __token__ -p '${{ steps.mint.outputs.api-token }}'