diff --git a/.github/workflows/githubpages.yml b/.github/workflows/githubpages.yml index 6bf6cfd..27004ea 100644 --- a/.github/workflows/githubpages.yml +++ b/.github/workflows/githubpages.yml @@ -22,6 +22,8 @@ jobs: with: dotnet-version: 9.x dotnet-quality: 'ga' + - name: Setup .NET workload maui-android + run: dotnet workload install maui-android - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Update relative paths @@ -32,8 +34,10 @@ jobs: sed -i 's/"start_url": "\/"/"start_url": "\/${{github.event.repository.name}}\/"/g' manifest.webmanifest sed -i 's/"action": "\/"/"action": "\/${{github.event.repository.name}}\/"/g' manifest.webmanifest sed -i 's/"action": "\/receive-webshare"/"action": "\/${{github.event.repository.name}}\/receive-webshare"/g' manifest.webmanifest + - name: Restore + run: dotnet restore src/WebConverter/WebConverter.csproj - name: Publish - run: dotnet publish src/WebConverter/WebConverter.csproj -c Release -p:PublishProfile=src/WebConverter/Properties/PublishProfiles/PublishSite.pubxml -p:VersionSuffix=ci + run: dotnet publish src/WebConverter/WebConverter.csproj -c Release -p:PublishProfile=src/WebConverter/Properties/PublishProfiles/PublishSite.pubxml -p:VersionSuffix=ci --no-restore - name: Create .nojekyll file run: touch src/WebConverter/bin/Release/net9.0/publish/wwwroot/.nojekyll - name: Update service-worker-assets.js hashes diff --git a/.github/workflows/githubpages_staging.yml b/.github/workflows/githubpages_staging.yml index ecd688f..2a0ed32 100644 --- a/.github/workflows/githubpages_staging.yml +++ b/.github/workflows/githubpages_staging.yml @@ -23,6 +23,8 @@ jobs: with: dotnet-version: 9.x dotnet-quality: 'ga' + - name: Setup .NET workload maui-android + run: dotnet workload install maui-android - name: Setup .NET workload wasm-tools run: dotnet workload install wasm-tools - name: Update relative paths @@ -33,8 +35,10 @@ jobs: sed -i 's/"start_url": "\/"/"start_url": "\/${{github.event.repository.name}}\/"/g' manifest.webmanifest sed -i 's/"action": "\/"/"action": "\/${{github.event.repository.name}}\/"/g' manifest.webmanifest sed -i 's/"action": "\/receive-webshare"/"action": "\/${{github.event.repository.name}}\/receive-webshare"/g' manifest.webmanifest + - name: Restore + run: dotnet restore src/WebConverter/WebConverter.csproj - name: Publish - run: dotnet publish src/WebConverter/WebConverter.csproj -c Release -p:PublishProfile=src/WebConverter/Properties/PublishProfiles/PublishSite.pubxml -p:VersionSuffix=ci + run: dotnet publish src/WebConverter/WebConverter.csproj -c Release -p:PublishProfile=src/WebConverter/Properties/PublishProfiles/PublishSite.pubxml -p:VersionSuffix=ci --no-restore - name: Create .nojekyll file run: touch src/WebConverter/bin/Release/net9.0/publish/wwwroot/.nojekyll - name: Update service-worker-assets.js hashes