-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathgh-pages.yml
33 lines (28 loc) · 1.05 KB
/
gh-pages.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
name: Deploy to Github Pages
on:
push:
branches: [ master ]
pull_request:
branches: [ master ]
jobs:
build:
runs-on: ubuntu-latest
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
# .NET Core環境の構築
- name: Setup .NET Core SDK
uses: actions/[email protected]
with:
# Blazor WebAssemblyが使えるSDKを指定
dotnet-version: 3.1.x
- name: Build Application
# デプロイするProjectを指定 (今回は"WebApplicationGitHubPage")
run: dotnet publish -c Release ./WebApplicationGitHubPage/WebApplicationGitHubPage.csproj
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
# publishコマンドで出力されたファイルをgh-pagesブランチにpush
publish_dir: ./WebApplicationGitHubPage/bin/Release/netstandard2.1/publish/wwwroot/