zip artifacts only for windows builds
This commit is contained in:
parent
938de04b52
commit
bf90131558
1 changed files with 12 additions and 2 deletions
14
.github/workflows/ci-otapi3.yml
vendored
14
.github/workflows/ci-otapi3.yml
vendored
|
|
@ -44,12 +44,22 @@ jobs:
|
||||||
chmod +x TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/TShock.Server
|
chmod +x TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/TShock.Server
|
||||||
|
|
||||||
# preserve file perms: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files
|
# preserve file perms: https://github.com/actions/upload-artifact#maintaining-file-permissions-and-case-sensitive-files
|
||||||
- name: Archive artifact
|
- name: Tarball artifact (non-Windows)
|
||||||
|
if: ${{ matrix.arch != 'win-x64' }}
|
||||||
run: |
|
run: |
|
||||||
cd TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
|
cd TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
|
||||||
tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar *
|
tar -cvf ../../../../../../TShock-Beta-${{ matrix.arch }}-Release.tar *
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- name: Upload artifact (non-Windows)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ matrix.arch != 'win-x64' }}
|
||||||
with:
|
with:
|
||||||
name: TShock-Beta-${{ matrix.arch }}-Release
|
name: TShock-Beta-${{ matrix.arch }}-Release
|
||||||
path: TShock-Beta-${{ matrix.arch }}-Release.tar
|
path: TShock-Beta-${{ matrix.arch }}-Release.tar
|
||||||
|
|
||||||
|
- name: Upload artifact (Windows)
|
||||||
|
uses: actions/upload-artifact@v3
|
||||||
|
if: ${{ matrix.arch == 'win-x64' }}
|
||||||
|
with:
|
||||||
|
name: TShock-Beta-${{ matrix.arch }}-Release
|
||||||
|
path: TShockLauncher/bin/Release/net6.0/${{ matrix.arch }}/publish/
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue