-
Notifications
You must be signed in to change notification settings - Fork 11
62 lines (55 loc) · 1.52 KB
/
base9.yaml
File metadata and controls
62 lines (55 loc) · 1.52 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
name: BASE9
on:
push:
branches: [ master ]
workflow_dispatch:
# if: ${{ false }}
jobs:
# base9 --------------------------------------------------------------
base9:
name: BASE9
runs-on: ubuntu-latest
steps:
- name: Checkout Git repository
uses: actions/checkout@v3
- name: Build BASE9
run: |
cd ~/
wget https://www.jsoftware.com/download/j9.7/install/j9.7_linux64.tar.gz
tar -xzf j9.7_linux64.tar.gz
cd -
echo "UserFolders_j_=: ~. UserFolders_j_,'Main';'`pwd`'" > bld.ijs
echo "load 'project'" >> bld.ijs
echo "load '~Main/save/build.ijs'" >> bld.ijs
echo "exit 0" >> bld.ijs
cat bld.ijs
~/j9.7/bin/jconsole bld.ijs || exit 1
mkdir -p release/install/bin
cp config/profile* release/install/bin/.
cd release
tar -czf ../base9.tar.gz install
cd -
cp config/version.txt .
ls -l
- name: Release
uses: ncipollo/release-action@v1
with:
tag: build
artifacts: "base9.tar.gz,version.txt"
token: ${{ secrets.GITHUB_TOKEN }}
allowUpdates: true
replacesArtifacts: true
# webhook --------------------------------------------------------------
webhook:
name: Run Webhook
# remove the following line to run
# if: ${{ false }}
runs-on: ubuntu-latest
needs: base9
steps:
- name: update server
uses: distributhor/workflow-webhook@v2
env:
webhook_url: ${{ secrets.WEBHOOK_URL }}
webhook_secret: ${{ secrets.WEBHOOK_SECRET }}
data: '{ "id": "base9" }'