Skip to content

Create GH pages deploy workflow #1

Create GH pages deploy workflow

Create GH pages deploy workflow #1

Workflow file for this run

name: Deploy to GitHub Pages
on:
push:
branches: [main]
jobs:
deploy-to-github-pages:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
dotnet-version: 7.0
- name: Publish .NET Core Project
run: dotnet publish Modulhandbuch.Frontend\Modulhandbuch.Frontend.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