Skip to content

Build CNS.Auth.Web

Build CNS.Auth.Web #9

Workflow file for this run

# This is a basic workflow to help you get started with Actions
name: Build CNS.Auth.Web
# Controls when the workflow will run
on:
pull_request:
branches:
- main
paths:
- 'WebApps/CNS.Auth.Web/**'
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
Build:
env:
SOLUTION_FILE: "CNS.Auth.Web.sln"
PUBLISH_FOLDER: "_publish"
ARTIFACT_NAME: CNSProxy
# The type of runner that the job will run on
runs-on: ubuntu-latest
defaults:
run:
working-directory: ./WebApps/CNS.Auth.Web
# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v2
- name: Setup .NET Core SDK
uses: actions/setup-dotnet@v1.8.2
with:
dotnet-version: 6.0.x
- name: publish
run: dotnet publish -c Release -o $PUBLISH_FOLDER $SOLUTION_FILE
- name: Upload Build Artifact
uses: actions/upload-artifact@v2.2.4
with:
name: ${{ env.ARTIFACT_NAME }}
path: ${{ github.workspace }}/WebApps/CNS.Auth.Web/${{ env.PUBLISH_FOLDER }}