Skip to content

Commit

Permalink
fix filter
Browse files Browse the repository at this point in the history
Signed-off-by: Yu Chin Fabian Lim <[email protected]>
  • Loading branch information
fabianlim committed Jun 29, 2024
1 parent 9b42ecc commit b1a396d
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions .github/workflows/build-and-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,14 @@ jobs:
with:
filters: |
plugins:
- 'plugins/${{ matrix.plugin_name }}'
- name: Set up Python ${{ matrix.python-version.setup }}
- 'plugins/${{ matrix.plugin_name }}/**'
- if: steps.changes.outputs.plugins == 'true'
name: Set up Python ${{ matrix.python-version.setup }}
uses: actions/setup-python@v4
with:
python-version: ${{ matrix.python-version.setup }}
- name: Install dependencies
- if: steps.changes.outputs.plugins == 'true'
name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install tox
Expand All @@ -44,7 +46,8 @@ jobs:
# cd plugins/${{ matrix.plugin_name }}
# tox -e ${{ matrix.python-version.tox }}

- name: Build and check wheel package
- if: steps.changes.outputs.plugins == 'true'
name: Build and check wheel package
run: |
cd plugins/${{ matrix.plugin_name }}
tox -e build,twinecheck
Expand All @@ -54,7 +57,8 @@ jobs:
# working-directory: plugins/${{ matrix.plugin_name }}
# run: rm ./dist/*.sigstore

- name: "Upload to PyPI"
- if: steps.changes.outputs.plugins == 'true'
name: "Upload to PyPI"
uses: pypa/gh-action-pypi-publish@ec4db0b4ddc65acdf4bff5fa45ac92d78b56bdf0 # v1.9.0
with:
packages-dir: plugins/${{ matrix.plugin_name }}/dist
Expand Down

0 comments on commit b1a396d

Please sign in to comment.