Skip to content

Commit c88020f

Browse files
bug: fixing build artifacts
Nothing everything was falling into the right places and some things from debugging were ending up in the final output.
1 parent 0af7547 commit c88020f

File tree

3 files changed

+7
-14
lines changed

3 files changed

+7
-14
lines changed

Dockerfile

Lines changed: 4 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -20,10 +20,8 @@ ARG DESCRIPTION
2020
RUN apt-get update && apt-get dist-upgrade -y && apt-get install zip jq -y
2121

2222
# 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 *
2725

2826
# Create a tag and associate it with a release in GitHub. We don't need to check if it already exist, if it already
2927
# exists the command won't do anything.
@@ -48,12 +46,5 @@ RUN export RELEASE_ID=$(curl -L \
4846
-H "Accept: application/vnd.github+json" \
4947
-H "Authorization: Bearer $GITHUB_TOKEN" \
5048
-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"

src/TwitchStreamingTools/TwitchStreamingTools.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
<DocumentationFile>bin\Release\TwitchStreamingTools.xml</DocumentationFile>
2222
<TreatWarningsAsErrors>true</TreatWarningsAsErrors>
2323
<NoWarn>CS0108</NoWarn>
24+
<DebugType>none</DebugType>
2425
</PropertyGroup>
2526

2627
<ItemGroup>
@@ -42,6 +43,7 @@
4243
<None Remove="log4net.debug.config"/>
4344
<Content Include="log4net.debug.config">
4445
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
46+
<CopyToPublishDirectory>Never</CopyToPublishDirectory>
4547
</Content>
4648
</ItemGroup>
4749

src/nullinside-api

0 commit comments

Comments
 (0)