Skip to content

Display PR (#71)

Display PR (#71) #57

name: .NET Core
on:
push:
branches: [ main ]
paths-ignore:
- '**.md'
env:
DOTNET_VERSION: '6.0.x'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- name: Setup .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: ${{ env.DOTNET_VERSION }}
- name: Install dependencies
working-directory: ./src
run: dotnet restore
- name: Build
working-directory: ./src
run: dotnet build --configuration Release --no-restore
- name: Test
working-directory: ./src
run: dotnet test --no-restore --verbosity normal
- name: Publish
working-directory: ./src
run: dotnet publish TimeCalc/TimeCalc.csproj --configuration Release --no-restore
- name: Copy to blob storage
uses: Azure/cli@v1
with:
azcliversion: latest
inlineScript: >
az storage blob upload-batch
-s $GITHUB_WORKSPACE/src/TimeCalc/bin/Release/net6.0/publish/wwwroot
-d \$web
--connection-string '${{ secrets.STORAGE_CONNECTION_STRING }}'
--overwrite