Skip to content

Bump react-router-dom from 6.21.0 to 6.22.2 in /src/Chat.Api/UI2 #69

Bump react-router-dom from 6.21.0 to 6.22.2 in /src/Chat.Api/UI2

Bump react-router-dom from 6.21.0 to 6.22.2 in /src/Chat.Api/UI2 #69

Workflow file for this run

name: Build and deploy tanka-chat
on:
push:
paths-ignore:
- 'docs/**'
branches:
- master
- release/**
tags:
- "*"
pull_request:
branches: [master]
env:
AZURE_WEBAPP_NAME: tanka-chat
AZURE_WEBAPP_PACKAGE_PATH: src/Chat.Api/published
CONFIGURATION: Release
DOTNET_CORE_VERSION: 8.0.x
WORKING_DIRECTORY: src/Chat.Api
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: 1
DOTNET_CLI_TELEMETRY_OPTOUT: 1
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup .NET SDK
uses: actions/setup-dotnet@v3
with:
dotnet-version: ${{ env.DOTNET_CORE_VERSION }}
- name: Restore
run: dotnet restore "${{ env.WORKING_DIRECTORY }}"
- name: Build
run: dotnet build "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-restore
- name: Test
run: dotnet test "${{ env.WORKING_DIRECTORY }}" --no-build
- name: Publish
run: dotnet publish "${{ env.WORKING_DIRECTORY }}" --configuration ${{ env.CONFIGURATION }} --no-build --output "${{ env.AZURE_WEBAPP_PACKAGE_PATH }}"
- name: Publish Artifacts
uses: actions/upload-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
deploy:
runs-on: ubuntu-latest
needs: build
if: github.ref_name == 'master' || startsWith(github.ref, 'refs/tags/')
steps:
- name: Download artifact from build job
uses: actions/download-artifact@v3
with:
name: webapp
path: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}
- name: Deploy to Azure WebApp
uses: azure/webapps-deploy@v2
with:
app-name: ${{ env.AZURE_WEBAPP_NAME }}
publish-profile: ${{ secrets.tanka_chat_6507 }}
package: ${{ env.AZURE_WEBAPP_PACKAGE_PATH }}