generated from funfair-tech/funfair-server-template
-
Notifications
You must be signed in to change notification settings - Fork 0
/
action.yml
72 lines (67 loc) · 2.57 KB
/
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
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
--- # Publishes a Dotnet app to an executable
name: 'Publishes a Dotnet app to an executable'
description: 'Publishes a Dotnet app to an executable'
inputs:
# General
PRODUCTION_BUILD:
description: 'Whether to build a production build'
required: true
BUILD_VERSION:
description: 'Build version'
required: true
RELEASE_NOTES:
description: 'Release notes'
required: false
PLATFORM:
description: 'Release notes'
required: true
PROJECT_TO_PUBLISH:
description: 'Package (root) to deploy'
required: false
runs:
using: "composite"
steps:
# TODO: Investigate changing the settings for these to be project settings like with "-p:PublishTrimmed=False" so can
# optimise the projects that better suit the settings.
#
# -p:PublishAot=false
# -p:PublishReadyToRun=False
- name: "Dotnet: Publish"
working-directory: ${{github.workspace}}/src/${{inputs.PROJECT_TO_PUBLISH}}
shell: bash
run: |
dotnet publish \
--no-restore \
-warnaserror \
--configuration:Release \
"-r:${{inputs.PLATFORM}}" \
--self-contained \
-nodeReuse:False \
-p:NoWarn=NETSDK1179 \
-p:SuppressNETCoreSdkPreviewMessage=true \
-p:PublishSingleFile=true \
-p:PublishAot=false \
-p:PublishReadyToRun=False \
-p:PublishReadyToRunShowWarnings=True \
-p:DisableSwagger=False \
-p:TreatWarningsAsErrors=True \
-p:IncludeNativeLibrariesForSelfExtract=false \
"-p:Version=${{inputs.BUILD_VERSION}}" \
"-p:FFPublishing=True" \
"-p:SolutionDir=..\\" \
"-p:IsProduction=${{inputs.PRODUCTION_BUILD}}" \
--output ${{github.workspace}}/server-dist/${{inputs.PLATFORM}} \
${{env.DOTNET_RELEASE_DEFINES}}
env:
ReleaseNotes: ${{inputs.RELEASE_NOTES}}
DOTNET_ROOT: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_INSTALL_DIR: "${{github.workspace}}/.dotnet/${{github.sha}}-${{github.run_id}}-${{github.run_number}}-${{github.run_attempt}}"
DOTNET_MULTILEVEL_LOOKUP: "false"
DOTNET_NOLOGO: "true"
DOTNET_PRINT_TELEMETRY_MESSAGE: "false"
DOTNET_JitCollect64BitCounts: "1"
DOTNET_ReadyToRun: "0"
DOTNET_TC_QuickJitForLoops: "1"
DOTNET_TC_CallCountingDelayMs: "0"
DOTNET_TieredPGO: "1"
MSBUILDTERMINALLOGGER: "auto"