Skip to content

Update main.yml

Update main.yml #61

Workflow file for this run

name: DeployDemoToGitHubPages
env:
PUBLISH_DIR: site/Site/bin/Release/net6.0/publish/wwwroot
on:
push:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Publish app
run: cd site/Site && dotnet publish -c Release
- name: GitHub Pages
if: success()
uses: crazy-max/[email protected]
with:
target_branch: gh-pages
build_dir: ${{ env.PUBLISH_DIR }}
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}