Skip to content

Commit e56e7f1

Browse files
authored
ci: update signaling (#15981)
* ci: update signaling * config
1 parent d21b899 commit e56e7f1

File tree

1 file changed

+18
-16
lines changed

1 file changed

+18
-16
lines changed

.github/workflows/release-pypi.yml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ defaults:
1212
shell: bash
1313

1414
jobs:
15+
1516
init:
1617
runs-on: ubuntu-20.04
1718
steps:
@@ -23,6 +24,7 @@ jobs:
2324
name: dist-packages-${{ github.sha }}
2425
path: dist
2526

27+
2628
build-packages:
2729
needs: init
2830
runs-on: ubuntu-20.04
@@ -40,22 +42,20 @@ jobs:
4042
- uses: actions/setup-python@v4
4143
with:
4244
python-version: 3.9
43-
4445
- name: Install dependencies
4546
run: pip install -U setuptools wheel
46-
4747
- name: Build packages
4848
env:
4949
PACKAGE_NAME: ${{ matrix.pkg-name }}
5050
run: |
5151
python setup.py sdist bdist_wheel
5252
ls -lh dist/
53-
5453
- uses: actions/upload-artifact@v3
5554
with:
5655
name: dist-packages-${{ github.sha }}
5756
path: dist
5857

58+
5959
upload-packages:
6060
runs-on: ubuntu-20.04
6161
needs: build-packages
@@ -73,6 +73,7 @@ jobs:
7373
files: 'dist/*'
7474
repo-token: ${{ secrets.GITHUB_TOKEN }}
7575

76+
7677
release-version:
7778
runs-on: ubuntu-20.04
7879
outputs:
@@ -87,6 +88,7 @@ jobs:
8788
id: lai-package
8889
run: python -c "import lightning as L; print(f'version={L.__version__}')" >> $GITHUB_OUTPUT
8990

91+
9092
signaling:
9193
runs-on: ubuntu-20.04
9294
needs: [release-version]
@@ -100,12 +102,6 @@ jobs:
100102
with:
101103
repository: gridai/base-images
102104
token: ${{ secrets.PAT_GHOST }}
103-
ref: main
104-
- uses: fregante/setup-git-token@v1
105-
with:
106-
token: ${{ secrets.PAT_GHOST }}
107-
name: PL Ghost
108-
109105
- name: Update lightning version
110106
run: |
111107
import json, os
@@ -115,18 +111,21 @@ jobs:
115111
with open("versions.json", "w") as fw:
116112
json.dump(vers, fw)
117113
shell: python
118-
- name: GIT Commit
114+
- run: cat versions.json
115+
- name: GIT commit & push
116+
env:
117+
BRANCH_NAME: "trigger/lightning-${{ env.TAG }}"
119118
run: |
119+
git config --global user.name "PL Ghost"
120+
git config --global user.email [email protected]
121+
git checkout -b ${BRANCH_NAME}
120122
git add versions.json
121-
git commit -m "bumping lightning version -> ${TAG}"
122-
cat versions.json
123-
- name: GIT Push
124-
run: |
125123
git status
126-
git push
124+
git commit -m "bumping lightning version -> ${TAG}"
125+
git push -u origin ${BRANCH_NAME} -f
126+
127127
128128
waiting:
129-
# TODO: replace with back signal from build images/ loop checking for a specific branch?
130129
runs-on: ubuntu-20.04
131130
needs: [release-version, signaling]
132131
env:
@@ -150,6 +149,7 @@ jobs:
150149
time.sleep(60)
151150
shell: python
152151

152+
153153
pre-publish-packages:
154154
runs-on: ubuntu-20.04
155155
needs: build-packages
@@ -179,6 +179,7 @@ jobs:
179179
pkg-pattern: "*"
180180
pypi-test-token: ${{ secrets.PYPI_TEST_TOKEN_LAI }}
181181

182+
182183
publish-packages:
183184
runs-on: ubuntu-20.04
184185
needs: [build-packages, waiting]
@@ -208,6 +209,7 @@ jobs:
208209
pkg-pattern: "*"
209210
pypi-token: ${{ secrets.PYPI_TOKEN_LAI }}
210211

212+
211213
legacy-checkpoints:
212214
needs: [build-packages]
213215
uses: ./.github/workflows/legacy-checkpoints.yml

0 commit comments

Comments
 (0)