Skip to content

Commit

Permalink
Simplify artifact uploading
Browse files Browse the repository at this point in the history
  • Loading branch information
valters-tomsons committed May 4, 2024
1 parent 168cdfc commit 05dc352
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 15 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dotnet.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
# This workflow will build a .NET project
# For more information see: https://docs.github.com/en/actions/automating-builds-and-tests/building-and-testing-net

name: .NET

on:
Expand Down Expand Up @@ -30,9 +27,9 @@ jobs:
uses: actions/upload-artifact@v4
with:
name: DayZLauncher-UnixPatcher
path: "./unixpatcher.tar.xz"
path: "./release"
- name: Upload artifact
uses: actions/upload-artifact@v4
with:
name: DayZLauncher-UnixPatcher-Musl
path: "./unixpatcher-musl.tar.xz"
path: "./release-musl"
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ Features:

## Upgrading

If you are upgrading from a previous version, make sure to (in order):
If you are upgrading from a previous version, make sure to (**in order**):
* delete `steamapps/compatdata/221100` folder
* verify game files
* start the game launcher once
Expand Down
14 changes: 5 additions & 9 deletions scripts/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,13 @@

cd ..

echo "Building patcher for all platforms"

dotnet publish -c release -r linux-x64 -o ./publish
dotnet publish -c release -r linux-musl-x64 -o ./publish-musl

echo "Preparing release"

mkdir ./release && mkdir ./release/bin
mkdir ./release-musl && mkdir ./release-musl/bin

Expand All @@ -14,12 +18,4 @@ mv ./publish-musl/* ./release-musl/bin/
mv ./release/bin/README.md ./release/README.md
mv ./release-musl/bin/README.md ./release-musl/README.md

rm ./publish -d && rm ./publish-musl -d

echo "Archiving release..."
tar -cJf unixpatcher.tar.xz --transform 's|^release/||' release/*

echo "Archiving release-musl..."
tar -cJf unixpatcher-musl.tar.xz --transform 's|^release-musl/||' release-musl/*

rm ./release -r && rm ./release-musl -r
rm ./publish -d && rm ./publish-musl -d

0 comments on commit 05dc352

Please sign in to comment.