-
Notifications
You must be signed in to change notification settings - Fork 2
32 lines (29 loc) · 893 Bytes
/
Copy pathmain.yml
File metadata and controls
32 lines (29 loc) · 893 Bytes
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
name: Deploy to GHP branch
on:
push:
branches: [ main ]
paths-ignore:
- '**/README.md'
- '.github/workflows/**'
- 'scripts/**'
jobs:
deploy-to-ghp-branch:
runs-on: ubuntu-latest
steps:
# Check out the repository
- uses: actions/checkout@v2
# Setup the required .NET SDK (change dotnet-version as needed)
- name: Setup .NET SDK
uses: actions/setup-dotnet@v1
with:
dotnet-version: 8.0.x
# Publish the Blazor WebAssembly project
- name: Publish Blazor Project
run: dotnet publish -c Release -o release --nologo
# Deploy to GitHub Pages
- name: Deploy to GHP branch final
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot