Skip to content

downgrade to peerjs 1.4.7 #101

downgrade to peerjs 1.4.7

downgrade to peerjs 1.4.7 #101

Workflow file for this run

name: Deploy to GitHub Pages
# Run workflow on every push to the main branch
on:
push:
branches: [ main ]
jobs:
deploy-to-github-pages:
# use ubuntu-latest image to run steps on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./Client
steps:
- name: Get current date
id: today
uses: Kaven-Universe/github-action-current-date-time@v1
with:
format: "YYYY.MM.DD"
# uses GitHub's checkout action to checkout code form the master branch
- uses: actions/checkout@v4
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.x
# Changes the version in Index.razor
- name: Change version in Index.razor
run: sed -i 's/BUILDDATE/${{ steps.today.outputs.time }}.${{ github.run_number }}/g' Pages/Index.razor.cs
# Changes the base tag in index.html from root to match the GitHub Pages repository subdirectory
- name: Change base-tag in index.html
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorBingo\/" \/>/g' wwwroot/index.html
# Changes the base tag in service-worker.published.js from root to match the GitHub Pages repository subdirectory
- name: Change base-tag in service-worker.published.js
run: sed -i 's/const base = "\/"/const base = "\/BlazorBingo\/"/g' wwwroot/service-worker.published.js
- name: Restore .NET workloads to pick up wasm-tools
run: dotnet workload restore
# publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: dotnet publish BlazorBingo.Client.csproj -c Release -o release --nologo
# 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 the .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@v4
with:
token: ${{ secrets.GITHUB_TOKEN }}
branch: gh-pages
folder: Client/release/wwwroot