-
Notifications
You must be signed in to change notification settings - Fork 20
32 lines (28 loc) · 1.05 KB
/
githubpages.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
name: Deploy to GitHub Pages
# Run workflow on every push to the master branch
on:
push:
branches: [ master ]
jobs:
publish:
name: build and publish to Github Pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup dotnet
uses: actions/setup-dotnet@v3
with:
dotnet-version: 9.0.x
- name: Build with dotnet
run: dotnet build --configuration Release
- name: Publish Website
run: dotnet publish MetaMask.Blazor.SampleApp -o publish/MetaMask.Blazor.SampleApp -c Release
# add .nojekyll file to tell GitHub pages to not treat this as a Jekyll project. (Allow files and folders starting with an underscore)
- name: Add .nojekyll file
run: touch publish/MetaMask.Blazor.SampleApp/wwwroot/.nojekyll
- name: Commit wwwroot to GitHub Pages
uses: JamesIves/github-pages-deploy-action@3.7.1
with:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BRANCH: gh-pages
FOLDER: publish/MetaMask.Blazor.SampleApp/wwwroot