Skip to content

Commit 61529af

Browse files
author
Jérôme FERET
committed
try to set up night releases
1 parent 29db32c commit 61529af

1 file changed

Lines changed: 53 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 53 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -133,6 +133,13 @@ jobs:
133133
name: linux
134134
path: |
135135
Kappapp.tar.gz
136+
- name: Update nightly release
137+
uses: pyTooling/Actions/releaser@r0
138+
with:
139+
tag: nightly
140+
rm: true
141+
token: ${{ secrets.GITHUB_TOKEN }}
142+
files: Kappapp.tar.gz
136143

137144
webapp-macos:
138145
runs-on: macos-15
@@ -157,12 +164,12 @@ jobs:
157164
find Kappapp.app/Contents/ \( -name \*.app -or -name \*.framework \) \
158165
-exec codesign --deep -s - \{\} \;
159166
codesign -s - Kappapp.app
160-
zip -y -r Kappapp.app.zip Kappapp.app
161-
- name: Archive MacOS app
162-
uses: actions/upload-artifact@v4
167+
zip -y -r Kappapp.app.zip Kappapp.app
168+
- name: Save MacOs Binaries
169+
uses: actions/upload-artifact@v4
163170
with:
164-
name: macos
165-
path: Kappapp.app.zip
171+
name: macos-dist
172+
path: Kappapp.app.zip
166173

167174
webapp-windows:
168175
runs-on: windows-2022
@@ -190,6 +197,13 @@ jobs:
190197
with:
191198
name: windows
192199
path: KappappWin.zip
200+
- name: Update nightly release
201+
uses: pyTooling/Actions/releaser@r0
202+
with:
203+
tag: nightly
204+
rm: true
205+
token: ${{ secrets.GITHUB_TOKEN }}
206+
files: KappappWin.zip
193207

194208
#webapp-playwright-test:
195209
# needs: [cli-and-doc, webapp-ubuntu]
@@ -261,31 +275,42 @@ jobs:
261275
# path: xvfb_log.txt
262276
# retention-days: 30
263277

264-
# deploy:
265-
# needs: [cli-and-doc, webapp-ubuntu, webapp-macos, webapp-windows, webapp-playwright-test]
266-
# if: github.ref == 'refs/heads/master'
267-
# runs-on: ubuntu-22.04
268-
# strategy:
269-
# matrix:
270-
# deploy-name: [doc, online-ui, linux, macos, windows]
271-
# steps:
272-
# - name: Checkout
273-
# uses: actions/checkout@v5
274-
# - name: Download artifact
275-
# uses: actions/download-artifact@v4
276-
# with:
277-
# name: ${{matrix.deploy-name}}
278-
# - name: Install SSH Key
279-
# uses: shimataro/ssh-key-action@v2
280-
# with:
281-
# key: ${{ secrets.DEPLOY_KEY }}
282-
# known_hosts: api.kappalanguage.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJooIEJd6sgRL5JUKGqh9zB3Xla1MchqR8IWl7Nh9ahm9Ji6IwV9QSKG9YQEIHdJWxBk4UzbfRWGkDK9q1GggyM=
283-
# - name: Run deploy script
284-
# run: dev/deploy-to-website.sh ${{matrix.deploy-name}}
285-
278+
night_macos:
279+
needs: [webapp-macos]
280+
runs-on: ubuntu-22.04
281+
steps:
282+
- name: Checkout mac os code
283+
uses: actions/checkout@v5
284+
- name: Download artifact
285+
uses: actions/download-artifact@v4
286+
with:
287+
name: macos-dist
288+
path: Kappapp.app.zip
289+
290+
deploy:
291+
needs: [cli-and-doc, webapp-ubuntu, webapp-macos, webapp-windows]
292+
if: github.ref == 'refs/heads/master'
293+
runs-on: ubuntu-22.04
294+
strategy:
295+
matrix:
296+
deploy-name: [doc, online-ui, linux, macos, windows]
297+
steps:
298+
- name: Checkout
299+
uses: actions/checkout@v5
300+
- name: Download artifact
301+
uses: actions/download-artifact@v4
302+
with:
303+
name: ${{matrix.deploy-name}}
304+
- name: Install SSH Key
305+
uses: shimataro/ssh-key-action@v2
306+
with:
307+
key: ${{ secrets.DEPLOY_KEY }}
308+
known_hosts: api.kappalanguage.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJooIEJd6sgRL5JUKGqh9zB3Xla1MchqR8IWl7Nh9ahm9Ji6IwV9QSKG9YQEIHdJWxBk4UzbfRWGkDK9q1GggyM=
309+
- name: Run deploy script
310+
run: dev/deploy-to-website.sh ${{matrix.deploy-name}}
286311
# TODO: see if add cache
287312
# # from https://github.com/hazelgrove/hazel/blob/868f673119827a35ec67fad5e7e0d5135ce91d4c/.github/workflows/deploy_branches.yml#L19-L29
288-
# - name: Retrieve the switch environment if cached
313+
# - name: Retrieve the switch environment if cached
289314
# id: opam-cache-switch
290315
# uses: actions/cache@v4
291316
# with:

0 commit comments

Comments
 (0)