-
Notifications
You must be signed in to change notification settings - Fork 0
36 lines (31 loc) · 1.04 KB
/
ci.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
name: 'Publish application'
on: push
jobs:
build:
runs-on: ubuntu-latest
steps:
# Checkout the code
- uses: actions/checkout@v2
# Install .NET Core SDK
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 3.1.x
# Run tests
- name: Test
run: dotnet test
# Generate the website
- name: Publish
run: dotnet publish CrochetConvert/CrochetConvert.csproj --configuration Release
# Publish the website
- name: GitHub Pages action
if: github.ref == 'refs/heads/master' # Publish only when the push is on master
uses: peaceiris/actions-gh-pages@v3.6.1
with:
github_token: ${{ secrets.PUBLISH_TOKEN }}
publish_branch: gh-pages
publish_dir: CrochetConvert/bin/Release/netstandard2.1/publish/wwwroot
allow_empty_commit: false
keep_files: false
force_orphan: true
cname: www.crochetconvert.com