Skip to content

Commit ae5b186

Browse files
committed
Deprecate old workflows
1 parent 9beff62 commit ae5b186

File tree

3 files changed

+13
-5
lines changed

3 files changed

+13
-5
lines changed

.github/workflows/create-delphi-utils-release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
name: Create Delphi Utils Release
1+
name: (Deprecated) Create Delphi Utils Release
22

33
on:
44
workflow_dispatch:

.github/workflows/publish-release.yml

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,21 @@
1-
name: (local test) Publish release
1+
name: Publish release
22

33
on:
44
push:
55
branches: [ prod ]
66
workflow_dispatch:
77

88
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+
916
check:
1017
runs-on: ubuntu-latest
18+
needs: correct_repository
1119
steps:
1220
- name: Check out code
1321
uses: actions/checkout@v2
@@ -81,14 +89,14 @@ jobs:
8189
path: _delphi_utils_python/dist/*.tar.gz
8290
- name: Publish a Python distribution to PyPI
8391
uses: pypa/gh-action-pypi-publish@release/v1
84-
if: github.repository_owner == 'cmu-delphi'
8592
with:
8693
user: __token__
8794
password: ${{ secrets.DELPHI_PYPI_PROD_TOKEN }}
8895
packages_dir: _delphi_utils_python/dist/
8996
skip_existing: true
9097

9198
sync_main:
99+
needs: correct_repository
92100
runs-on: ubuntu-latest
93101
steps:
94102
- name: Check out code

.github/workflows/release-delphi-utils.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
1-
name: Release Delphi Utils
1+
name: (Deprecated) Release Delphi Utils
22

33
on:
44
push:
55
branches:
6-
- prod
6+
- not_prod
77
paths:
88
- '_delphi_utils_python/**'
99
workflow_dispatch:

0 commit comments

Comments
 (0)