Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
mx2rel authored Mar 16, 2024
1 parent 0a11eb2 commit 9414dbc
Showing 1 changed file with 14 additions and 5 deletions.
19 changes: 14 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ name: WinUI 3 MSIX app

on:
push:
branches: [ main ]
branches: [ test ]
pull_request:
branches: [ main ]
branches: [ test ]

jobs:

Expand All @@ -29,12 +29,21 @@ jobs:
uses: actions/checkout@v2
with:
fetch-depth: 0

# Replace URL in code
- name: Replace URL in code
run: |
Get-ChildItem -Path VulcanForWindows/Classes/VulcanGradesDb -Recurse -Include *.cs | ForEach-Object {
$filePath = $_.FullName
(Get-Content $filePath) | ForEach-Object {
$_ -replace 'var baseUrl = Properties.Resources.ClassmatesGradesServerUrl;', "var baseUrl = ""${{ secrets.CLASSMATESGRADESSERVERURL }}"";"
} | Set-Content $filePath
}
# Install the .NET Core workload
- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 6.0
dotnet-version: 6.0.x

# Add MSBuild to the PATH: https://github.com/microsoft/setup-msbuild
- name: Setup MSBuild.exe
Expand Down Expand Up @@ -72,4 +81,4 @@ jobs:
uses: actions/upload-artifact@v2
with:
name: MSIX Package
path: ${{ env.Solution_Name }}\\Packages
path: Packages\

0 comments on commit 9414dbc

Please sign in to comment.