Skip to content

Commit 2d0bc3d

Browse files
chore: improve build and deployment conditions
1 parent 9185b26 commit 2d0bc3d

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.github/workflows/build.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@ on:
99
jobs:
1010
build:
1111
name: Build and publish
12-
if: github.ref == 'refs/heads/main'
1312
runs-on: "ubuntu-24.04"
1413

1514
steps:

.github/workflows/cd.yml

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
11
name: CD
22

33
on:
4-
workflow_dispatch: {}
5-
push:
6-
branches:
7-
- main
4+
workflow_run:
5+
workflows: ["Core CI"]
6+
types:
7+
- completed
88

99
jobs:
1010
build:
11-
uses: ./.github/workflows/build.yml
12-
secrets:
13-
token: ${{ secrets.PYPI_TOKEN }}
11+
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event.workflow_run.event == 'push' && github.event.workflow_run.head_branch == 'main' }}
12+
uses: ./.github/workflows/build.yml
13+
secrets:
14+
token: ${{ secrets.PYPI_TOKEN }}

.github/workflows/ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,11 +6,13 @@ on:
66
branches:
77
- main
88
paths:
9+
- "pyproject.toml"
910
- "src/uipath_sdk/**"
1011
pull_request:
1112
branches:
1213
- main
1314
paths:
15+
- "pyproject.toml"
1416
- "src/uipath_sdk/**"
1517

1618
jobs:

.github/workflows/rest_ci.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@ on:
77
- main
88
paths-ignore:
99
- "src/**"
10+
- "pyproject.toml"
1011
pull_request:
1112
branches:
1213
- main
1314
paths-ignore:
1415
- "src/**"
16+
- "pyproject.toml"
1517

1618
jobs:
1719
lint:

0 commit comments

Comments
 (0)