Skip to content

Commit bb6ce55

Browse files
add nightly updater
1 parent 9dfcce2 commit bb6ce55

File tree

1 file changed

+43
-0
lines changed

1 file changed

+43
-0
lines changed

.github/workflows/make.yml

Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Update Release
2+
on:
3+
workflow_dispatch:
4+
repository_dispatch:
5+
types: [ci-clibs-nightly]
6+
jobs:
7+
event:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Download CE Libraries
11+
uses: robinraju/release-downloader@v1
12+
with:
13+
repository: CE-Programming/toolchain
14+
fileName: 'clibs_separately_in_zip.zip'
15+
extract: true
16+
17+
- name: Download CE Libraries Zip
18+
uses: robinraju/release-downloader@v1
19+
with:
20+
repository: CE-Programming/toolchain
21+
fileName: 'clibs.8xg'
22+
extract: true
23+
24+
- name: Download Current CE Libraries
25+
uses: robinraju/release-downloader@v1
26+
with:
27+
fileName: 'clibs.8xg'
28+
out-file-path: 'current'
29+
extract: true
30+
31+
- name: Check for difference
32+
run: diff clibs.8xg clibs.8xg &> /dev/null || echo "need to update"
33+
34+
- name: Update nightly release
35+
uses: pyTooling/Actions/releaser@main
36+
with:
37+
tag: nightly
38+
rm: true
39+
token: ${{secrets.GITHUB_TOKEN}}
40+
files: |
41+
clibs.8xg
42+
clibs_separately_in_zip.zip
43+

0 commit comments

Comments
 (0)