From 0f32e4fc720e554825ccd8f0f2e32bdfc419f2df Mon Sep 17 00:00:00 2001 From: David Sungaila Date: Wed, 16 Oct 2024 11:39:31 +0200 Subject: [PATCH] Revert "Update workflows" This reverts commit b8992fc2774c00e687eb17eed73e966acf39d0d0. --- .github/workflows/githubpages.yml | 6 +++++- .github/workflows/githubpages_staging.yml | 6 +++++- 2 files changed, 10 insertions(+), 2 deletions(-) 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