-
-
Notifications
You must be signed in to change notification settings - Fork 1
31 lines (25 loc) · 895 Bytes
/
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
name: Deploy to Github Pages
on:
push:
branches: [ main ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: 8.0.x
- name: Publish application
run: |
cp ./src/TaTooIne.Demo/wwwroot/index.html ./src/TaTooIne.Demo/wwwroot/404.html
yarn --cwd ./src/TaTooIne.Demo/wwwroot/ install --silent --frozen-lockfile
dotnet publish -c Release ./src/TaTooIne.Demo/TaTooIne.Demo.csproj -o ./src/TaTooIne.Demo/publish
- name: Deploy
if: ${{ github.ref == 'refs/heads/main' }}
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_branch: gh-pages
publish_dir: ./src/TaTooIne.Demo/publish/wwwroot/