updating vulnerable packages + An obselete package to be in sync wit… #148
This file contains hidden or 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 GitHub client | |
on: | |
workflow_dispatch: | |
push: | |
branches: [ main ] | |
jobs: | |
build-and-deploy: | |
runs-on: windows-latest | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET Core | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Install dependencies | |
run: dotnet restore src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj | |
env: | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
- name: Build | |
run: dotnet build src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj --configuration Release --no-restore | |
- name: dotnet publish | |
run: dotnet publish src/Clients/PullRequestQuantifier.GitHub.Client/PullRequestQuantifier.GitHub.Client.csproj -c Release -o ${{env.DOTNET_ROOT}}/pullrequestquantifiergithubclient | |
- name: Deploy to Azure Web App | |
if: github.ref == 'refs/heads/main' | |
uses: azure/webapps-deploy@v2 | |
with: | |
app-name: 'pullrequestquantifier' | |
slot-name: 'production' | |
publish-profile: ${{ secrets.AzureAppService_PublishProfile_Password }} | |
package: ${{env.DOTNET_ROOT}}/pullrequestquantifiergithubclient |