5
5
inputs :
6
6
release_type :
7
7
required : true
8
+ default : latest
8
9
type : string
10
+ no-upload :
11
+ type : boolean
12
+ description : " no-upload: if checked, don't upload"
9
13
workflow_call :
10
14
inputs :
11
15
release_type :
@@ -44,13 +48,24 @@ jobs:
44
48
container :
45
49
image : ${{ matrix.image }}
46
50
options : --platform ${{ matrix.platform }}
51
+ volumes :
52
+ # otherwise we get a 'read-only filesystem' error when symlinking over this
53
+ - /tmp/node20:/__e/node20
47
54
timeout-minutes : 15
48
55
outputs :
49
56
date : ${{ steps.build_date.outputs.date }}
50
57
env :
51
58
ACTIONS_ALLOW_USE_UNSECURE_NODE_VERSION : ' true'
52
59
53
60
steps :
61
+ - name : override nodejs
62
+ # note: the antique image intentionally has an old ubuntu with old GLIBC; github's node requires a newer one.
63
+ # actions require this /__e/node20/bin/node file, so we override it.
64
+ run : |
65
+ mkdir -p /__e/node20/bin/
66
+ ln --force --symbolic $(which node) /__e/node20/bin/node
67
+ /__e/node20/bin/node --version
68
+
54
69
- name : Check out code
55
70
if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
56
71
uses : actions/checkout@v3
@@ -102,7 +117,7 @@ jobs:
102
117
run : echo "date=`date +%F`" >> $GITHUB_OUTPUT
103
118
104
119
- name : Upload Files (Testing)
105
- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
120
+ if : ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !inputs.no-upload }}
106
121
uses :
google-github-actions/[email protected]
107
122
with :
108
123
headers : " cache-control: no-cache"
@@ -113,7 +128,7 @@ jobs:
113
128
gzip : false
114
129
115
130
- name : Upload Manifest (Testing)
116
- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
131
+ if : ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !inputs.no-upload }}
117
132
uses :
google-github-actions/[email protected]
118
133
with :
119
134
headers : " cache-control: no-cache"
@@ -139,7 +154,7 @@ jobs:
139
154
140
155
static_test :
141
156
name : Static Test
142
- if : github.event_name == 'workflow_dispatch' || github.event_name == 'push'
157
+ if : ${{ ( github.event_name == 'workflow_dispatch' || github.event_name == 'push') && !inputs.no-upload }}
143
158
strategy :
144
159
fail-fast : false
145
160
matrix :
@@ -186,6 +201,7 @@ jobs:
186
201
static_deploy :
187
202
name : Static Deploy
188
203
needs : static_test
204
+ if : ${{ !inputs.no-upload }}
189
205
runs-on : ubuntu-latest
190
206
191
207
steps :
0 commit comments