Skip to content

Update push.yml

Update push.yml #70

Workflow file for this run

name: DeployDemoToGitHubPages
env:
PUBLISH_DIR: site/Site/bin/Release/net8.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 }}