From 88e4578f076bd3b52d5864013e8c14ddebf5d347 Mon Sep 17 00:00:00 2001 From: mizaki Date: Sat, 21 Sep 2024 23:23:42 +0100 Subject: [PATCH] Update release.yaml --- .github/workflows/release.yaml | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/.github/workflows/release.yaml b/.github/workflows/release.yaml index b9932b0..6b026e7 100644 --- a/.github/workflows/release.yaml +++ b/.github/workflows/release.yaml @@ -29,15 +29,20 @@ jobs: run: | python -m pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt - - name: "Publish distribution 📦 to PyPI" - if: startsWith(github.ref, 'refs/tags/') - uses: pypa/gh-action-pypi-publish@release/v1 - - name: Build and install wheel run: | tox run -m build python -m pip install dist/*.whl -t build cd build + + - name: "Publish distribution 📦 to PyPI" + if: startsWith(github.ref, 'refs/tags/') + uses: pypa/gh-action-pypi-publish@release/v1 + + - name: Build ComicTagger plugin zip + if: startsWith(github.ref, 'refs/tags/') + shell: bash + run: | zip -x "*/__pycache__/*" -r ../dist/${{ github.event.repository.name }}-plugin-${{ github.ref_name }}.zip * - name: Get release name @@ -54,5 +59,4 @@ jobs: name: "${{ env.release_name }}" draft: false files: | - dist/*.whl dist/*.zip