Skip to content

Commit

Permalink
try fixing release pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
karottenreibe committed Feb 27, 2024
1 parent 7f31960 commit 1747244
Showing 1 changed file with 34 additions and 14 deletions.
48 changes: 34 additions & 14 deletions .github/workflows/actions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ jobs:
runs-on: windows-2022

steps:
- name: test rsync
shell: bash
run: rsync --help
- name: Cut v from release tag and set version string
if: startsWith(github.ref, 'refs/tags/v')
shell: pwsh
Expand Down Expand Up @@ -76,27 +79,44 @@ jobs:
run: node_modules/.bin/markdown-pdf -c documentation -s documentation/pdf.css -f A4 documentation/userguide.md

- name: Create release zip
shell: bash

# robocopy sets weird exit codes (codes != 0 that still signal success) so we need to ignore them
# c.f. https://superuser.com/questions/280425/getting-robocopy-to-return-a-proper-exit-code#346112
# we achieve this by following up the robocopy commands with "exit 0"
#
# copy Profiler dlls and pdbs
run: |
mkdir teamscale_dotnet_profiler\UploadDaemon
mkdir teamscale_dotnet_profiler\Documentation
mkdir teamscale_dotnet_profiler\Licenses
mkdir teamscale_dotnet_profiler\Tools
robocopy .\Profiler\bin\Release teamscale_dotnet_profiler *.dll *.pdb & exit 0
robocopy .\Profiler teamscale_dotnet_profiler Profiler.example.yml & exit 0
robocopy .\Profiler\bin\Release\UploadDaemon teamscale_dotnet_profiler\UploadDaemon *.* /xf *.pdb & exit 0
mkdir teamscale_dotnet_profiler\UploadDaemon\service
robocopy .\UploadDaemon\service teamscale_dotnet_profiler\UploadDaemon\service *.* & exit 0
robocopy .\Profiler\bin\Release\DumpPdb teamscale_dotnet_profiler\Tools *.* /xf *.pdb & exit 0
robocopy . teamscale_dotnet_profiler LICENSE & exit 0
robocopy .\Profiler\lib teamscale_dotnet_profiler\Licenses LICENSE /s & exit 0
robocopy .\documentation teamscale_dotnet_profiler\Documentation userguide.pdf & exit 0
7z a teamscale-profiler-dotnet.zip .\teamscale_dotnet_profiler
mkdir teamscale_dotnet_profiler
cp ./Profiler/bin/Release/*.dll teamscale_dotnet_profiler
cp ./Profiler/bin/Release/*.pdb teamscale_dotnet_profiler
cp ./Profiler/Profiler.example.yml teamscale_dotnet_profiler
# todo: exclude pdbs
cp -r ./Profiler/bin/Release/UploadDaemon teamscale_dotnet_profiler
mkdir teamscale_dotnet_profiler/Tools
# todo: exclude pdbs
cp -r ./Profiler/bin/Release/DumpPdb teamscale_dotnet_profiler/Tools
mkdir teamscale_dotnet_profiler/Licenses
# Todo copy licenses of used libs
# cp ./Profiler/lib/*/LICENSE teamscale_dotnet_profiler/Licenses
cp ./LICENSE teamscale_dotnet_profiler
mkdir teamscale_dotnet_profiler/Documentation
cp ./documentation/userguide.pdf teamscale_dotnet_profiler/Documentation
echo "--------------------"
ls -alR teamscale_dotnet_profiler
echo "--------------------"
7z a teamscale-profiler-dotnet.zip ./teamscale_dotnet_profiler
- uses: actions/upload-artifact@v4
with:
name: release-zip
path: '*.zip'

- name: Upload Release Assets
if: startsWith(github.ref, 'refs/tags/v')
Expand Down

0 comments on commit 1747244

Please sign in to comment.