Skip to content

Commit 1e159e8

Browse files
committed
Enhance release workflow to filter publish-relevant changes
1 parent aaef15c commit 1e159e8

File tree

2 files changed

+11
-4
lines changed

2 files changed

+11
-4
lines changed

.github/workflows/docs.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,5 +45,4 @@ jobs:
4545
4646
- name: Deploy to GitHub Pages
4747
run: |
48-
uv venv
4948
uv run --group docs --group lint mkdocs gh-deploy --force -v

.github/workflows/release.yml

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -41,11 +41,10 @@ jobs:
4141
cache: true
4242

4343
- name: Analyze Flutter package
44+
working-directory: src/flutter/flet_permission_handler
4445
run: |
45-
cd src/flutter/*
4646
dart pub get
4747
dart analyze
48-
cd -
4948
5049
- name: Build Python package
5150
run: uv build
@@ -56,6 +55,15 @@ jobs:
5655
name: dist
5756
path: dist/*.whl
5857

58+
- name: Filter publish-relevant changes
59+
uses: dorny/paths-filter@v3
60+
id: changes
61+
with:
62+
filters: |
63+
publish:
64+
- 'src/**'
65+
- 'pyproject.toml'
66+
5967
- name: Publish Python package
60-
if: github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
68+
if: steps.changes.outputs.publish == 'true' && github.event_name != 'pull_request' && (github.ref == 'refs/heads/main' || startsWith(github.ref, 'refs/tags/'))
6169
run: uv publish

0 commit comments

Comments
 (0)