Skip to content

Merge branch 'main' of https://github.com/Astorec/Beyblade-Tournament… #7

Merge branch 'main' of https://github.com/Astorec/Beyblade-Tournament…

Merge branch 'main' of https://github.com/Astorec/Beyblade-Tournament… #7

Workflow file for this run

name: 'Deploy to GitHub Page'
on:
push:
branches: [ main ]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Set environment variables
run:
export MY_SECRET=${{ secrets.MY_SECRET }}
export MY_CLIENT_ID=${{ secrets.MY_CLIENT_ID }}
- name: 'Setup DotNet core SDK 8.0'
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.401
- name: Publish DotNet Project
run: dotnet publish BeybladeTournamentManager.csproj -c Release -o release --nologo
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot
- name: Change base-tag in index.html from / to Beyblade-Tournament-Manager
run: sed -i 's/<base href="\/" \/>/<base href="\/Beyblade-Tournament-Manager\/" \/>/g' release/wwwroot/index.html