File tree Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Expand file tree Collapse file tree 3 files changed +13
-5
lines changed Original file line number Diff line number Diff line change 1
- name : Create Delphi Utils Release
1
+ name : (Deprecated) Create Delphi Utils Release
2
2
3
3
on :
4
4
workflow_dispatch :
Original file line number Diff line number Diff line change 1
- name : (local test) Publish release
1
+ name : Publish release
2
2
3
3
on :
4
4
push :
5
5
branches : [ prod ]
6
6
workflow_dispatch :
7
7
8
8
jobs :
9
+ correct_repository :
10
+ runs-on : ubuntu-latest
11
+ steps :
12
+ - name : fail on fork
13
+ if : github.repository_owner != 'cmu-delphi'
14
+ run : exit 1
15
+
9
16
check :
10
17
runs-on : ubuntu-latest
18
+ needs : correct_repository
11
19
steps :
12
20
- name : Check out code
13
21
uses : actions/checkout@v2
@@ -81,14 +89,14 @@ jobs:
81
89
path : _delphi_utils_python/dist/*.tar.gz
82
90
- name : Publish a Python distribution to PyPI
83
91
uses : pypa/gh-action-pypi-publish@release/v1
84
- if : github.repository_owner == 'cmu-delphi'
85
92
with :
86
93
user : __token__
87
94
password : ${{ secrets.DELPHI_PYPI_PROD_TOKEN }}
88
95
packages_dir : _delphi_utils_python/dist/
89
96
skip_existing : true
90
97
91
98
sync_main :
99
+ needs : correct_repository
92
100
runs-on : ubuntu-latest
93
101
steps :
94
102
- name : Check out code
Original file line number Diff line number Diff line change 1
- name : Release Delphi Utils
1
+ name : (Deprecated) Release Delphi Utils
2
2
3
3
on :
4
4
push :
5
5
branches :
6
- - prod
6
+ - not_prod
7
7
paths :
8
8
- ' _delphi_utils_python/**'
9
9
workflow_dispatch :
You can’t perform that action at this time.
0 commit comments