Added input to CLI renderer and made the CLI renderer slightly faster #13
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Deploy Github Pages | |
on: | |
push: | |
branches: | |
- "root" | |
jobs: | |
deploy: | |
name: Deploy Github Pages | |
runs-on: ubuntu-latest | |
permissions: | |
packages: read | |
contents: write | |
steps: | |
- name: Checkout Code | |
uses: actions/checkout@master | |
with: | |
submodules: "recursive" | |
fetch-depth: 0 | |
- name: Setup Dotnet | |
uses: actions/setup-dotnet@v3 | |
with: | |
dotnet-version: '8.0.x' # SDK Version to use | |
- name: Testing | |
run: dotnet test Gameboy.Test | |
- name: Change base-tag | |
run: sed -i 's/<base href="\/" \/>/<base href="\/BlazorBoy\/" \/>/g' Gameboy.Player.Blazor/wwwroot/index.html | |
- name: Restore Packages | |
env: | |
GITHUB_USERNAME: qkmaxware | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: dotnet restore | |
- name: Build Site | |
env: | |
GITHUB_USERNAME: qkmaxware | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
run: dotnet publish Gameboy.Player.Blazor -c Release -o .site | |
- name: Add .nojekyll file | |
run: touch .site/wwwroot/.nojekyll | |
- name: Custom 404 | |
run: cp .site/wwwroot/index.html .site/wwwroot/404.html | |
- name: Commit to Github Pages | |
uses: JamesIves/[email protected] | |
with: | |
TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
BRANCH: gh-pages | |
FOLDER: .site/wwwroot |