Skip to content

自習書テキスト - .NET 8 に対応 #11

自習書テキスト - .NET 8 に対応

自習書テキスト - .NET 8 に対応 #11

Workflow file for this run

name: github pages
on:
push:
branches:
- public-edition
- master
jobs:
deploy:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v3
with:
ref: public-edition
path: code
# Checkout the doc
- uses: actions/checkout@v3
with:
ref: master
path: doc
# Install .NET SDK
- name: Setup .NET SDK
uses: actions/setup-dotnet@v2
with:
dotnet-version: 8.0.x
- name: Install .NET WebAssembly Tools
run: dotnet workload install wasm-tools
# Publish the site
- name: Publish
run: dotnet publish code/Client -c:Release -o:public -p:GHPages=true
# Copy the doc
- name: Copy the PDF
run: cp doc/*.pdf public/wwwroot
# Deploy the site
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: public/wwwroot
force_orphan: true