GitCreateDiff add unit test for when the content is the same (#236) #42
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 and Deploy repository service | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build-and-deploy-repository-service: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v2 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v1 | |
with: | |
dotnet-version: 7.0.x | |
- name: Install dependencies | |
run: dotnet restore src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
- name: Build | |
run: dotnet build src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj --configuration Release --no-restore | |
- name: dotnet publish | |
run: dotnet publish src/PullRequestQuantifier.Repository.Service/PullRequestQuantifier.Repository.Service.csproj -c Release -o ${{env.DOTNET_ROOT}}/pullrequestquantifierreposervice | |
- name: Deploy to Azure Web App | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'codevelocity-repositoryservice' | |
slot-name: 'production' | |
publish-profile: ${{ secrets.REPOSITORY_SERVICE_AZUREAPPSECRET }} | |
package: ${{env.DOTNET_ROOT}}/pullrequestquantifierreposervice |