Adding CI and fixing up a readme (#1) #1
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build Blazor App | |
on: [push, pull_request] | |
jobs: | |
build: | |
if: github.event_name == 'push' && contains(toJson(github.event.commits), '***NO_CI***') == false && contains(toJson(github.event.commits), '[ci skip]') == false && contains(toJson(github.event.commits), '[skip ci]') == false | |
name: Build | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 3.1.300 | |
- name: Restore | |
run: dotnet restore | |
- name: Build with dotnet | |
run: dotnet build --configuration Release --no-restore | |
- name: Publish with dotnet | |
run: dotnet publish --configuration Release -o published_app --no-build | |
- name: Publish artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: webapp | |
path: published_app |