-
Notifications
You must be signed in to change notification settings - Fork 0
37 lines (31 loc) · 1023 Bytes
/
main.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
34
35
36
37
name: github pages
# Run workflow on every push to the master branch
on:
push:
branches:
- main
pull_request:
branches:
- main
jobs:
deploy-to-github-pages:
# use ubuntu-latest image to run steps on
runs-on: ubuntu-latest
steps:
# uses GitHub's checkout action to checkout code form the main branch
- uses: actions/checkout@v2
# sets up .NET Core SDK 6.0.x
- name: Setup .NET Core SDK
uses: actions/[email protected]
# Install dotnet wasm buildtools workload
- name: Install .NET WASM Build Tools
run: dotnet workload install wasm-tools
# Publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: dotnet publish ./CirsaHackaton.csproj -c:Release -p:GHPages=true -o dist/Web --nologo
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: dist/Web/wwwroot