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 ba93fc1 commit 377b1de
Showing 1 changed file with 9 additions and 4 deletions.
13 changes: 9 additions & 4 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,22 @@ jobs:
run: |
python -m pip install --upgrade --upgrade-strategy eager -r requirements-dev.txt
- name: Build and make zip plugin
- name: Build and install wheel
run: |
tox run -m build
python -m pip install dist/*.whl -t build
cd build
zip -x "*/__pycache__/*" -r ../dist/${{ github.event.repository.name }}-plugin-${{ github.ref_name }}.zip *
- 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: |
python -m pip install dist/*.whl -t build
cd build
zip -x "*/__pycache__/*" -r ../dist/${{ github.event.repository.name }}-plugin-${{ github.ref_name }}.zip *
- name: Get release name
if: startsWith(github.ref, 'refs/tags/')
shell: bash
Expand Down

0 comments on commit 377b1de

Please sign in to comment.