Merge branch 'main' of https://github.com/Astorec/Beyblade-Tournament… #7
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 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 |