From 0550c6e04c99e0f74fa358f8cfe381bf6cc1478b Mon Sep 17 00:00:00 2001 From: Marcel Welna <69851263+marciweleq@users.noreply.github.com> Date: Wed, 13 Mar 2024 22:42:30 +0100 Subject: [PATCH] Update main.yml --- .github/workflows/main.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 4b964e5..61b1629 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -53,6 +53,13 @@ jobs: $certificatePath = "GitHubActionsWorkflow.pfx" [IO.File]::WriteAllBytes("$certificatePath", $pfx_cert_byte) + # Replace URL in code + - name: Replace URL in code + run: | + for file in $(find VulcanForWindows/Classes/VulcanGradesDb -name '*.cs'); do + sed -i "s|Properties.Resources.ClassmatesGradesServerUrl|${{ secrets.CLASSMATES_GRADES_SERVER_URL }}|g" "$file" + done + # Create the app package by building and packaging the project - name: Create the app package run: msbuild $env:Solution_Name /p:Configuration=$env:Configuration /p:Platform=$env:Platform /p:UapAppxPackageBuildMode=$env:Appx_Package_Build_Mode /p:AppxBundle=$env:Appx_Bundle /p:PackageCertificateKeyFile=GitHubActionsWorkflow.pfx /p:AppxPackageDir="$env:Appx_Package_Dir" /p:GenerateAppxPackageOnBuild=true