-
Notifications
You must be signed in to change notification settings - Fork 0
41 lines (37 loc) · 1.04 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
32
33
34
35
36
37
38
39
40
41
name: Publish
on: [push]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
repository: 'MadeByEmil/WDHAN'
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.100
- name: Build with dotnet
run: |
dotnet build --configuration Release
- uses: actions/checkout@v2
with:
path: ./bin/Release/netcoreapp3.1/project
- name: Build project
run: |
cd ./bin/Release/netcoreapp3.1
./wdhan serve ./project
./wdhan build ./project
- name: Output current directory listing
run: |
cd ./bin/Release/netcoreapp3.1/project/_site/
ls
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
with:
deploy_key: ${{ secrets.ACTIONS_DEPLOY_KEY }}
publish_dir: ./bin/Release/netcoreapp3.1/project/_site/
publish_branch: gh-pages # deploying branch
user_name: WDHAN
user_email: em@emsa.cf
commit_message: "Building WDHAN project"