Bump Microsoft.NET.Test.Sdk from 17.11.1 to 17.12.0 #511
Workflow file for this run
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 Project | |
env: | |
DOTNET_NOLOGO: true | |
DOTNET_SKIP_FIRST_TIME_EXPERIENCE: true | |
DOTNET_ENVIRONMENT: github | |
ASPNETCORE_ENVIRONMENT: github | |
BUILD_PATH: "${{github.workspace}}/artifacts" | |
on: | |
push: | |
branches: | |
- master | |
- develop | |
tags: | |
- "v*" | |
pull_request: | |
branches: | |
- master | |
- develop | |
jobs: | |
build-project: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v4 | |
with: | |
fetch-depth: 0 | |
- name: Setup .NET | |
uses: actions/setup-dotnet@v4 | |
with: | |
dotnet-version: 8.0.x | |
- name: Setup Node | |
uses: actions/setup-node@v4 | |
with: | |
node-version: "20" | |
- name: Install Sass Tool | |
run: npm i -g sass | |
- name: Restore Dependencies | |
run: dotnet restore | |
- name: Build Solution | |
run: "dotnet build --no-restore --configuration Release" | |
- name: Publish Web Application | |
if: success() | |
run: 'dotnet publish ./src/EstimatorX.Service/EstimatorX.Service.csproj --configuration Release --output "${{env.BUILD_PATH}}/Application"' | |
- name: Upload Web Application Artifact | |
if: success() | |
uses: actions/upload-artifact@v4 | |
with: | |
name: Application | |
path: "${{env.BUILD_PATH}}/Application" | |
deploy-development: | |
runs-on: ubuntu-latest | |
needs: build-project | |
if: success() && github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' | |
environment: | |
name: development | |
url: https://staging.estimatorx.com/ | |
steps: | |
- name: Download Web Application Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: Application | |
- name: Deploy Web Application to Azure Staging | |
if: github.ref == 'refs/heads/develop' | |
uses: azure/webapps-deploy@v3 | |
with: | |
app-name: "web-ls-app-eus-ex-stg-01" | |
slot-name: "Production" | |
publish-profile: ${{secrets.PUBLISH_PROFILE_STAGING}} | |
package: ./ | |
clean: true | |
restart: true | |
deploy-production: | |
runs-on: ubuntu-latest | |
needs: build-project | |
if: success() && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | |
environment: | |
name: production | |
url: https://estimatorx.com/ | |
steps: | |
- name: Download Web Application Artifact | |
uses: actions/download-artifact@v4 | |
with: | |
name: Application | |
- name: Deploy Web Application to Azure Production | |
if: success() && github.event_name != 'pull_request' && startsWith(github.ref, 'refs/tags/v') | |
uses: azure/webapps-deploy@v3 | |
with: | |
app-name: "web-ls-app-eus-ex-prd-01" | |
slot-name: "Production" | |
publish-profile: ${{secrets.PUBLISH_PROFILE_PRODUCTION}} | |
package: ./ |