Skip to content

Commit 0b052eb

Browse files
committed
add new workflow for releasing
1 parent 9d770a8 commit 0b052eb

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

.github/workflows/python-publish.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,15 @@ name: Upload Python Package
66
on:
77
release:
88
types: [published]
9+
paths:
10+
- 'scrapegraph-py/**'
911

1012
jobs:
1113
deploy:
1214

1315
runs-on: ubuntu-latest
16+
# Only run if scrapegraph-py has changes
17+
if: contains(github.event.release.body, 'scrapegraph-py/')
1418

1519
steps:
1620
- uses: actions/checkout@v4

.github/workflows/release.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,15 @@ on:
44
branches:
55
- main
66
- pre/*
7+
paths:
8+
- 'scrapegraph-py/**'
79

810
jobs:
911
build:
1012
name: Build
1113
runs-on: ubuntu-latest
14+
# Only run if scrapegraph-py has changes
15+
if: contains(github.event.head_commit.modified, 'scrapegraph-py/') || contains(github.event.head_commit.added, 'scrapegraph-py/') || contains(github.event.head_commit.removed, 'scrapegraph-py/')
1216
steps:
1317
- name: Install git
1418
run: |

0 commit comments

Comments
 (0)