Update mirror.yml #251
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: 'Publish ExoKomodo static site to Github Pages' | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
# Checkout the code | |
- uses: actions/checkout@v2 | |
# Install .NET SDK | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: '7.0.*' | |
# Generate the website | |
- name: Publish website | |
run: | | |
cd src/Client | |
cp wwwroot/index.html wwwroot/404.html | |
dotnet publish --configuration Release | |
# Publish the website | |
- name: GitHub Pages action | |
if: ${{ github.ref == 'refs/heads/main' }} # Publish only when the push is on main | |
uses: peaceiris/[email protected] | |
with: | |
github_token: ${{ secrets.GITHUB_TOKEN }} | |
publish_branch: gh-pages | |
publish_dir: src/Client/bin/Release/net7.0/publish/wwwroot | |
allow_empty_commit: false | |
keep_files: false | |
force_orphan: true | |
# Custom Domain | |
cname: www.exokomodo.com |