-
Notifications
You must be signed in to change notification settings - Fork 17
31 lines (30 loc) · 1.11 KB
/
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
name: Deploy to GitHub Pages
# Run workflow on every push to the master branch
on:
push:
branches: [ master ]
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 master branch
- uses: actions/checkout@v2
# sets up .NET Core .net 6
- name: Setup .NET 6
uses: actions/[email protected]
with:
dotnet-version: '6.0.*'
# publishes Blazor project to the release-folder
- name: Publish .NET Core Project
run: export DOTNET_SYSTEM_NET_HTTP_USESOCKETSHTTPHANDLER=0; dotnet publish Nethereum.Playground/Nethereum.Playground.csproj -c Debug -o release --nologo
- name: copy index.html to 404.html
run: cp release/wwwroot/index.html release/wwwroot/404.html
- name: Add .nojekyll file
run: touch release/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/[email protected]
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: release/wwwroot