-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
32 lines (30 loc) · 894 Bytes
/
action.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
name: "[.NET]Publish project"
inputs:
project-path:
required: true
type: string
publishprofile:
required: true
type: string
password:
required: true
type: string
version:
required: true
type: string
configuration:
required: false
type: string
default: "Release"
additional-arguments:
required: false
type: string
default: ""
runs:
using: "composite"
steps:
- name: Add msbuild to PATH
uses: microsoft/setup-msbuild@v1.1
- name: Build and deploy Application
run: msbuild ${{ inputs.project-path }} -property:Configuration=${{ inputs.configuration }} /restore /p:DeployOnBuild=true /p:PublishProfile=${{ inputs.publishprofile }} /p:Password=${{ inputs.password }} /p:AssemblyVersion=${{ inputs.version }} /p:FileVersion=${{ inputs.version }} ${{ inputs.additional-arguments }}
shell: pwsh