-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathWorkFlowBackup.txt
More file actions
36 lines (29 loc) · 999 Bytes
/
WorkFlowBackup.txt
File metadata and controls
36 lines (29 loc) · 999 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
33
34
35
name: gh-pages
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/[email protected]
- name: Setup .NET Core 5
uses: actions/setup-dotnet@v1
with:
dotnet-version: '5.0.301'
- name: Setup .NET Core 6
uses: actions/setup-dotnet@v1
with:
dotnet-version: '6.0.x'
include-prerelease: true
- name: Restore NuGet Packages
run: dotnet restore
- name: Publish with dotnet
run: dotnet publish --configuration Release --output build
- name: Deploy to Github Pages
uses: JamesIves/github-pages-deploy-action@releases/v3
with:
ACCESS_TOKEN: ${{ secrets.ACCESS_TOKEN }}
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
BASE_BRANCH: development # The branch the action should deploy from.
BRANCH: gh-pages # The branch the action should deploy to.
FOLDER: ./build/wwwroot # The folder the action should deploy.
SINGLE_COMMIT: true