Merge pull request #2 from AshleighAdams/dotnet7 #13
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: Continious Integration | |
on: | |
push: | |
branches: | |
- master | |
pull_request: | |
branches: | |
- master | |
defaults: | |
run: | |
shell: bash | |
jobs: | |
build: | |
name: "Build" | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: '0' | |
- name: Setup .NET 7 SDK | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install wasm-tools workload | |
run: | | |
dotnet workload install wasm-tools | |
- name: Setup Verlite | |
run: | | |
verlite_version="$(grep '"Verlite\.MsBuild"' WasmTest.csproj | LC_ALL=en_US.utf8 grep -Po 'Version="\K[^"]+')" | |
dotnet tool install --global Verlite.CLI --version "$verlite_version" | |
verlite . --auto-fetch --verbosity verbatim | |
- name: Publish | |
run: dotnet publish --configuration Release -o artifacts | |
- name: Upload Artifacts | |
uses: actions/upload-artifact@v2 | |
with: | |
name: artifacts | |
path: | | |
artifacts/* |