@@ -20,10 +20,8 @@ ARG DESCRIPTION
20
20
RUN apt-get update && apt-get dist-upgrade -y && apt-get install zip jq -y
21
21
22
22
# Generate the executables
23
- RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64 -p:PublishSingleFile=True -p:PublishTrimmed=True -p:TrimMode=CopyUsed -p:PublishReadyToRun=True --self-contained
24
- RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x86 -r win-x86 -p:PublishSingleFile=True -p:PublishTrimmed=True -p:TrimMode=CopyUsed -p:PublishReadyToRun=True --self-contained
25
- RUN cd /app/publish/win-x64 && zip -r ../windows-x64.zip *
26
- RUN cd /app/publish/win-x86 && zip -r ../windows-x86.zip *
23
+ RUN dotnet publish "TwitchStreamingTools.csproj" -p:Version="$TAG_VERSION" -c $BUILD_CONFIGURATION -o /app/publish/win-x64 -r win-x64 -p:PublishSingleFile=True -p:PublishReadyToRun=True --self-contained
24
+ RUN cd /app/publish/win-x64 && zip -r ../twitch-streaming-tools.zip *
27
25
28
26
# Create a tag and associate it with a release in GitHub. We don't need to check if it already exist, if it already
29
27
# exists the command won't do anything.
@@ -48,12 +46,5 @@ RUN export RELEASE_ID=$(curl -L \
48
46
-H "Accept: application/vnd.github+json" \
49
47
-H "Authorization: Bearer $GITHUB_TOKEN" \
50
48
-H "Content-Type: application/octet-stream" \
51
- "https://uploads.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/$RELEASE_ID/assets?name=windows-x64.zip" \
52
- --data-binary "@/app/publish/windows-x64.zip" && \
53
- curl -L \
54
- -X POST \
55
- -H "Accept: application/vnd.github+json" \
56
- -H "Authorization: Bearer $GITHUB_TOKEN" \
57
- -H "Content-Type: application/octet-stream" \
58
- "https://uploads.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/$RELEASE_ID/assets?name=windows-x86.zip" \
59
- --data-binary "@/app/publish/windows-x86.zip"
49
+ "https://uploads.github.com/repos/nullinside-development-group/twitch-streaming-tools/releases/$RELEASE_ID/assets?name=twitch-streaming-tools.zip" \
50
+ --data-binary "@/app/publish/twitch-streaming-tools.zip"
0 commit comments