Skip to content

Commit

Permalink
Update release.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
mizaki authored Sep 21, 2024
1 parent 11cda4f commit 88e4578
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -54,5 +59,4 @@ jobs:
name: "${{ env.release_name }}"
draft: false
files: |
dist/*.whl
dist/*.zip

0 comments on commit 88e4578

Please sign in to comment.