Skip to content

Feature: Convert Wyam to DocFx #596

Feature: Convert Wyam to DocFx

Feature: Convert Wyam to DocFx #596

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build website
# Controls when the action will run. Triggers the workflow on push or pull request
# events but only for the main branch
on:
push:
branches: [ main ]
pull_request:
branches: [ main ]
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: windows-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: |
2.1.x
3.1.x
5.0.x
6.0.x
7.0.x
- name: Checkout
uses: actions/checkout@v4
- name: Install docfx
run: dotnet tool update -g docfx
- name: Build Website
run: docfx reactiveui/docfx.json
- name: Deploy netlify
if: ${{ github.event_name != 'pull_request' }}
run: |
npm install -g netlify-cli
netlify deploy --auth=${{ secrets.NETLIFY_DEPLOY_KEY }} --site=${{ secrets.NETLIFY_SITE_ID }} --prod --dir=reactiveui/_site