Skip to content

Commit 66a4b21

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

1 file changed

Lines changed: 43 additions & 23 deletions

File tree

.github/workflows/ci.yml

Lines changed: 43 additions & 23 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: eine/tip@master
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
@@ -163,6 +170,13 @@ jobs:
163170
with:
164171
name: macos
165172
path: Kappapp.app.zip
173+
- name: Update nightly release
174+
uses: eine/tip@master
175+
with:
176+
tag: nightly
177+
rm: true
178+
token: ${{ secrets.GITHUB_TOKEN }}
179+
files: Kappapp.app.zip
166180

167181
webapp-windows:
168182
runs-on: windows-2022
@@ -190,6 +204,13 @@ jobs:
190204
with:
191205
name: windows
192206
path: KappappWin.zip
207+
- name: Update nightly release
208+
uses: eine/tip@master
209+
with:
210+
tag: nightly
211+
rm: true
212+
token: ${{ secrets.GITHUB_TOKEN }}
213+
files: KappappWin.zip
193214

194215
#webapp-playwright-test:
195216
# needs: [cli-and-doc, webapp-ubuntu]
@@ -261,31 +282,30 @@ jobs:
261282
# path: xvfb_log.txt
262283
# retention-days: 30
263284

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-
285+
deploy:
286+
needs: [cli-and-doc, webapp-ubuntu, webapp-macos, webapp-windows]
287+
if: github.ref == 'refs/heads/master'
288+
runs-on: ubuntu-22.04
289+
strategy:
290+
matrix:
291+
deploy-name: [doc, online-ui, linux, macos, windows]
292+
steps:
293+
- name: Checkout
294+
uses: actions/checkout@v5
295+
- name: Download artifact
296+
uses: actions/download-artifact@v4
297+
with:
298+
name: ${{matrix.deploy-name}}
299+
- name: Install SSH Key
300+
uses: shimataro/ssh-key-action@v2
301+
with:
302+
key: ${{ secrets.DEPLOY_KEY }}
303+
known_hosts: api.kappalanguage.org ecdsa-sha2-nistp256 AAAAE2VjZHNhLXNoYTItbmlzdHAyNTYAAAAIbmlzdHAyNTYAAABBBJooIEJd6sgRL5JUKGqh9zB3Xla1MchqR8IWl7Nh9ahm9Ji6IwV9QSKG9YQEIHdJWxBk4UzbfRWGkDK9q1GggyM=
304+
- name: Run deploy script
305+
run: dev/deploy-to-website.sh ${{matrix.deploy-name}}
286306
# TODO: see if add cache
287307
# # from https://github.com/hazelgrove/hazel/blob/868f673119827a35ec67fad5e7e0d5135ce91d4c/.github/workflows/deploy_branches.yml#L19-L29
288-
# - name: Retrieve the switch environment if cached
308+
# - name: Retrieve the switch environment if cached
289309
# id: opam-cache-switch
290310
# uses: actions/cache@v4
291311
# with:

0 commit comments

Comments
 (0)