From d07517506a685632547a6b061945fafbd4923bac Mon Sep 17 00:00:00 2001 From: atomsk-0 Date: Mon, 3 Mar 2025 20:39:59 +0200 Subject: [PATCH] Maybe now works? --- .github/workflows/dotnet-desktop.yml | 5 ++++- BuildScripts/contributors.py | 1 - 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/.github/workflows/dotnet-desktop.yml b/.github/workflows/dotnet-desktop.yml index 4957eab..6904c7c 100644 --- a/.github/workflows/dotnet-desktop.yml +++ b/.github/workflows/dotnet-desktop.yml @@ -78,8 +78,11 @@ jobs: - name: Restore the application run: dotnet restore + # We copy the contributors to the "env:Configuration" result, the origin path is now hardcoded so if ever the repo name changes this needs to be changed too - name: Publish - run: dotnet publish --configuration $env:Configuration --output ./$env:Configuration -r win-x64 /p:Platform=x64 + run: | + dotnet publish --configuration $env:Configuration --output ./$env:Configuration -r win-x64 /p:Platform=x64 + copy D:/a/WinDurango.UI/WinDurango.UI/Assets/contributors.txt ./$env:Configuration/Assets/contributors.txt env: Configuration: ${{ matrix.configuration }} diff --git a/BuildScripts/contributors.py b/BuildScripts/contributors.py index 8a4be32..1a1c9c3 100644 --- a/BuildScripts/contributors.py +++ b/BuildScripts/contributors.py @@ -23,7 +23,6 @@ try: url = contributor.get("html_url", None) contribution_count = str(contributor.get("contributions", None)) f.write(name.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + pfp.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + url.replace(";", "WD_CONTRIB_SEMICOLON") + ";" + contribution_count + "\n") - print("Wrote contributors.txt to " + os.path.join(os.path.dirname(__file__), "..", "Assets", "contributors.txt")) except: print("Couldn't fetch contributor information.") exit(0)