Skip to content

Commit 042b268

Browse files
committed
fix: use tarballs to maintain unix file perms
1 parent cb65446 commit 042b268

File tree

1 file changed

+24
-12
lines changed

1 file changed

+24
-12
lines changed

.github/workflows/build.yml

Lines changed: 24 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,9 @@ jobs:
150150
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
151151
run: dotnet publish Intersect.sln --sc -r linux-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }}
152152

153+
- name: Tarball artifacts to maintain unix file permissions
154+
run: tar -cvf linux.tar Intersect.Client/bin/Release/*/*/publish Intersect.Server/bin/Release/*/*
155+
153156
- name: Debug files on disk
154157
if: inputs.workflowDebug == true
155158
run: ls -R .
@@ -159,10 +162,7 @@ jobs:
159162
with:
160163
if-no-files-found: error
161164
name: engine
162-
path: |
163-
./Intersect.Client/bin/Release/*/*/publish
164-
./Intersect.Editor/bin/Release/*/*/publish
165-
./Intersect.Server/bin/Release/*/*/publish
165+
path: linux.tar
166166

167167
build-macos:
168168
name: Build for MacOS
@@ -218,6 +218,9 @@ jobs:
218218
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
219219
run: dotnet publish Intersect.sln --sc -r osx-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }}
220220

221+
- name: Tarball artifacts to maintain unix file permissions
222+
run: tar -cvf osx.tar Intersect.Client/bin/Release/*/*/publish Intersect.Server/bin/Release/*/*
223+
221224
- name: Debug files on disk
222225
if: inputs.workflowDebug == true
223226
run: ls -R .
@@ -227,10 +230,7 @@ jobs:
227230
with:
228231
if-no-files-found: error
229232
name: engine
230-
path: |
231-
./Intersect.Client/bin/Release/*/*/publish
232-
./Intersect.Editor/bin/Release/*/*/publish
233-
./Intersect.Server/bin/Release/*/*/publish
233+
path: osx.tar
234234

235235
build-windows:
236236
name: Build for Windows
@@ -286,6 +286,9 @@ jobs:
286286
if: steps.cache-binaries.outputs.cache-hit != 'true' || inputs.forceBuild == true || inputs.forceRestore == true
287287
run: dotnet publish Intersect.sln --sc -r win-x64 -p:Configuration=Release -p:PackageVersion=${{ env.VERSION_PREFIX }}${{ env.VERSION_SUFFIX }}.${{ github.run_number }}+build.${{ github.sha }} -p:Version=${{ env.VERSION_PREFIX }}.${{ github.run_number }}
288288

289+
- name: Tarball artifacts to maintain unix file permissions
290+
run: tar -cvf win.tar Intersect.Client/bin/Release/*/*/publish Intersect.Editor/bin/Release/*/*/publish Intersect.Server/bin/Release/*/*
291+
289292
- name: Debug files on disk
290293
if: inputs.workflowDebug == true
291294
run: ls -R .
@@ -295,10 +298,7 @@ jobs:
295298
with:
296299
if-no-files-found: error
297300
name: engine
298-
path: |
299-
./Intersect.Client/bin/Release/*/*/publish
300-
./Intersect.Editor/bin/Release/*/*/publish
301-
./Intersect.Server/bin/Release/*/*/publish
301+
path: win.tar
302302

303303
debug-build-artifacts:
304304
name: Debug Build Artifacts
@@ -312,6 +312,12 @@ jobs:
312312
name: engine
313313
path: .
314314

315+
- name: Extract build archives
316+
run: |
317+
tar -xvf linux.tar
318+
tar -xvf osx.tar
319+
tar -xvf win.tar
320+
315321
- name: Debug output
316322
run: ls -R .
317323

@@ -330,6 +336,12 @@ jobs:
330336
name: engine
331337
path: .
332338

339+
- name: Extract build archives
340+
run: |
341+
tar -xvf linux.tar
342+
tar -xvf osx.tar
343+
tar -xvf win.tar
344+
333345
- name: Checkout assets main_upgrade branch
334346
uses: actions/checkout@v4
335347
with:

0 commit comments

Comments
 (0)