Skip to content

Test For yaml

Test For yaml #1

Workflow file for this run

name: deployandpublish
on:
push:
branches: [ "master" ]
# permissions:
# id-token: write
# contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Publish .NET Core Project
run: dotnet publish Wordle/Wordle.csproj -c Release -o release --nologo
- name: Change base-tag in index.html from / to ChainReaction
run: sed -i 's/<base href="\/" \/>/<base href="\/Wordle\/" \/>/g' release/wwwroot/index.html
- name: Copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
# (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/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot