Skip to content

Commit 7ca4bfd

Browse files
committed
Add repository_dispatch triggers, matching other products' pattern
On push to main/production, dispatch a build-cad-python-net-english- stage/production event to Aspose/apireference.aspose.com instead of pushing this repo's own content into it directly. Same pattern every other product already uses (e.g. Words, Cells-Python-NET). The old main.yml/production.yml copycat-action workflows, which push content straight into apireference.aspose.com, are disabled separately now that this repo no longer needs them to get content there.
1 parent e55704b commit 7ca4bfd

2 files changed

Lines changed: 34 additions & 0 deletions

File tree

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Trigger Cad Python NET English Production Build
2+
3+
on:
4+
push:
5+
branches: [ production ]
6+
paths: [ 'english/**' ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
trigger:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: peter-evans/repository-dispatch@v2
14+
with:
15+
token: ${{ secrets.REPO_TOKEN }}
16+
repository: Aspose/apireference.aspose.com
17+
event-type: build-cad-python-net-english-production
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
name: Trigger Cad Python NET English Stage Build
2+
3+
on:
4+
push:
5+
branches: [ main ]
6+
paths: [ 'english/**' ]
7+
workflow_dispatch:
8+
9+
jobs:
10+
trigger:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- uses: peter-evans/repository-dispatch@v2
14+
with:
15+
token: ${{ secrets.REPO_TOKEN }}
16+
repository: Aspose/apireference.aspose.com
17+
event-type: build-cad-python-net-english-stage

0 commit comments

Comments
 (0)