From 27660abef146bc0e171d6663676c7654e204df6c Mon Sep 17 00:00:00 2001 From: Sven <40752681+NeoCoderMatrix86@users.noreply.github.com> Date: Tue, 26 Mar 2024 14:32:28 +0100 Subject: [PATCH] Delete .github/workflows/deploy_github_pages.yml --- .github/workflows/deploy_github_pages.yml | 57 ----------------------- 1 file changed, 57 deletions(-) delete mode 100644 .github/workflows/deploy_github_pages.yml diff --git a/.github/workflows/deploy_github_pages.yml b/.github/workflows/deploy_github_pages.yml deleted file mode 100644 index 9e769011..00000000 --- a/.github/workflows/deploy_github_pages.yml +++ /dev/null @@ -1,57 +0,0 @@ -name: Deploy to GitHub Pages - -# Run workflow on every push to the production branch -on: - push: - branches: [ production ] - -jobs: - deploy-to-github-pages: - # use ubuntu-latest image to run steps on - runs-on: ubuntu-latest - steps: - # uses GitHub's checkout action to checkout code from the production branch - - uses: actions/checkout@v3.1.0 - with: - ref: production - - # sets up .NET - # version can be found here https://dotnet.microsoft.com/en-us/download/dotnet/7.0 - - name: Setup .NET - uses: actions/setup-dotnet@v3 - with: - dotnet-version: '7.0.101' - - - name: Install wasm-tools - run: dotnet workload install wasm-tools - - # Only publish when unit tests are ok - - name: Run Unit Tests - run: dotnet test - - # publishes Blazor project to the release-folder - - name: Publish .NET Core Project - run: dotnet publish --no-restore AudioCuesheetEditor/AudioCuesheetEditor.csproj -c Release -o release --nologo - - # changes the base-tag in index.html from '/' to 'AudioCuesheetEditor' to match GitHub Pages repository subdirectory - - name: Change base-tag in index.html from / to AudioCuesheetEditor - run: sed -i 's///g' release/wwwroot/index.html - - # changes the favicon in index.html from '/' to 'AudioCuesheetEditor' to match GitHub Pages repository subdirectory - - name: Change favicon in index.html from / to AudioCuesheetEditor - run: sed -i 's///g' release/wwwroot/index.html - - # copy index.html to 404.html to serve the same file when a file is not found - - name: copy index.html to 404.html - run: cp release/wwwroot/index.html release/wwwroot/404.html - - # add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore) - - name: Add .nojekyll file - run: touch release/wwwroot/.nojekyll - - - name: Commit wwwroot to GitHub Pages - uses: JamesIves/github-pages-deploy-action@4 - with: - GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} - BRANCH: gh-pages - FOLDER: release/wwwroot