7
7
branches : [ v*.*.*, bugfix/*, master, dev, latest, testnet-*, mainnet-*, kira-* ]
8
8
9
9
jobs :
10
- # isolate signing & repo cloning from docker image
11
- setup :
12
- name : Repo Setup
10
+ build :
11
+ name : Repo Build
13
12
runs-on : ubuntu-20.04
14
13
permissions :
15
14
contents : read
16
15
packages : write
17
16
id-token : write
18
17
pull-requests : write
18
+ container :
19
+ image : ghcr.io/kiracore/docker/base-image:v0.8.0.0
19
20
steps :
20
- # ref.: https://github.com/sigstore/cosign-installer, v2.1.0
21
- - name : Install cosign
22
- uses : sigstore/cosign-installer@581838fbedd492d2350a9ecd427a95d6de1e5d01
23
- with :
24
- cosign-release : ' v1.6.0'
25
- # ref.: https://github.com/actions/checkout, v3.0.0
26
21
- name : Checkout repository
27
22
uses : actions/checkout@a12a3943b4bdde767164f792f33f40b04645d846
28
23
- name : Verify repo content
29
24
run : |
30
25
echo "(current dir): $PWD" && ls -l ./
31
26
cd ../ && tar -czvf src.tar.gz -C ./sekai . && cp ./src.tar.gz ./sekai/src.tar.gz
32
- - name : Uploading artifacts
33
- uses : actions/upload-artifact@v3.0.0
34
- with :
35
- name : sekai-src
36
- path : ./src.tar.gz
37
- build :
38
- name : Repo Build
39
- runs-on : ubuntu-20.04
40
- permissions :
41
- contents : read
42
- packages : write
43
- id-token : write
44
- pull-requests : write
45
- needs : [setup]
46
- container :
47
- image : ghcr.io/kiracore/docker/base-image:v0.5.0.0
48
- steps :
27
+ cd ./sekai
49
28
- name : Checking dependency versions
50
29
run : |
51
30
. /etc/profile && echo "Utils Version: $(utilsVersion)"
52
31
go version
53
- CDHelper version
54
- flutter --version
55
- dart --version
56
32
echo "ENVS: $(env)"
57
33
echo "HOME: $HOME"
58
34
echo " PWD: $PWD"
59
- - name : Download artifacts
60
- uses : actions/download-artifact@v3.0.0
61
- with :
62
- name : sekai-src
63
35
- name : Extract branch name on push
64
36
if : github.event_name == 'push'
65
37
shell : bash
@@ -104,16 +76,19 @@ jobs:
104
76
make publish
105
77
touch ./RELEASE.md
106
78
cp -fv ./RELEASE.md ./bin/RELEASE.md
79
+ cp -fv ./src.tar.gz ./bin/source-code.tar.gz
107
80
chmod -Rv 777 ./bin
108
81
echo -e "\n\r\n\r\`\`\`" >> ./bin/RELEASE.md
109
- echo -e " Release Versions: $RELEASE_VER\n\r" >> ./bin/RELEASE.md
82
+ echo -e " Release Versions: $RELEASE_VER\n\r" >> ./bin/RELEASE.md
83
+ echo -e " Release Date Time: $(date --rfc-2822)" >> ./bin/RELEASE.md
110
84
echo " sekai-darwin-amd64.deb: sha256:$(sha256sum ./bin/sekai-darwin-amd64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
111
85
echo " sekai-darwin-arm64.deb: sha256:$(sha256sum ./bin/sekai-darwin-arm64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
112
86
echo " sekai-linux-amd64.deb: sha256:$(sha256sum ./bin/sekai-linux-amd64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
113
87
echo " sekai-linux-arm64.deb: sha256:$(sha256sum ./bin/sekai-linux-arm64.deb | awk '{ print $1 }')" >> ./bin/RELEASE.md
114
88
echo "sekai-windows-amd64.exe: sha256:$(sha256sum ./bin/sekai-windows-amd64.exe | awk '{ print $1 }')" >> ./bin/RELEASE.md
115
89
echo "sekai-windows-arm64.exe: sha256:$(sha256sum ./bin/sekai-windows-arm64.exe | awk '{ print $1 }')" >> ./bin/RELEASE.md
116
90
echo " sekai-utils.sh: sha256:$(sha256sum ./bin/sekai-utils.sh | awk '{ print $1 }')" >> ./bin/RELEASE.md
91
+ echo " source-code.tar.gz: sha256:$(sha256sum ./bin/source-code.tar.gz | awk '{ print $1 }')" >> ./bin/RELEASE.md
117
92
echo -e "\`\`\`" >> ./bin/RELEASE.md
118
93
tar -czvf deb.tar.gz -C ./bin .
119
94
- name : Uploading artifacts
@@ -198,6 +173,7 @@ jobs:
198
173
./sekai-windows-amd64.exe
199
174
./sekai-windows-arm64.exe
200
175
./sekai-utils.sh
176
+ ./source-code.tar.gz
201
177
# ref: https://github.com/softprops/action-gh-release, v0.1.14
202
178
# Release on merge only (push action) - this should run only once
203
179
- name : Publish pre-release
@@ -221,6 +197,7 @@ jobs:
221
197
./sekai-windows-amd64.exe
222
198
./sekai-windows-arm64.exe
223
199
./sekai-utils.sh
200
+ ./source-code.tar.gz
224
201
# ref.: https://github.com/hmarr/auto-approve-action, v2.1.0
225
202
# Do NOT approve IF release exists and the source branch is NOT a version branch
226
203
- name : Approve pull request on success
0 commit comments