-
Notifications
You must be signed in to change notification settings - Fork 0
49 lines (42 loc) · 1.36 KB
/
buildDotNetTemplate.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
name: SQL Build Template (.NET)
on:
workflow_call:
inputs:
build_artifact_name:
required: true
type: string
description: "Specifies the name of the artifact to be downloaded."
working_directory:
required: true
type: string
description: "Specifies the working directory for the SQL project."
env:
BUILD_PATH: "DatabaseRelease"
jobs:
build:
name: Build SQL Project
runs-on: windows-latest
continue-on-error: false
# environment: ${{ inputs.environment }}
steps:
# Checkout repository
- name: Check Out Repository
id: checkout_repository
uses: actions/checkout@v3
# Setup msbuild
- name: Add msbuild to PATH
id: msbuild_setup
uses: microsoft/setup-msbuild@v1.3
# Build Database project
- name: Build Database project
id: dotnet_build
run: |
msbuild.exe MyDotNetSqlProject.sqlproj /p:Configuration=Release /p:OutputPath=.\${{ env.BUILD_PATH }}
working-directory: ${{ inputs.working_directory }}
# Upload SQL Package Artifacts
- name: Upload Build Artifacts
id: build_artifacts
uses: actions/upload-artifact@v3
with:
name: ${{ inputs.build_artifact_name }}
path: ${{ github.workspace }}/${{ inputs.working_directory }}/${{ env.BUILD_PATH }}