Skip to content

Publish

Publish #29102

Workflow file for this run

name: Publish
on:
schedule:
- cron: "0 */4 * * *"
push:
branches:
- main
jobs:
docs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v2
with:
submodules: true
- name: Setup .NET
uses: actions/setup-dotnet@main
with:
dotnet-version: 8.0.x
- name: Restore dependencies
run: dotnet restore
- name: Build
run: dotnet build --no-restore --configuration Release
- name: Fetch packages
run: |
cd IllusionPackageProvider/bin/Release/net8.0 &&
dotnet IllusionPackageProvider.dll
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Deploy to GitHub Pages
uses: crazy-max/ghaction-github-pages@v2
with:
target_branch: gh-pages
build_dir: IllusionPackageProvider/bin/Release/net8.0/Public
keep_history: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}