Maybe now works?

This commit is contained in:
atomsk-0
2025-03-03 20:39:59 +02:00
parent eafdfb6be0
commit d07517506a
2 changed files with 4 additions and 2 deletions

View File

@@ -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 }}

View File

@@ -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)