generated from credfeto/cs-template
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Dependencies] - Update .github/actions/build/action.yml to match the…
… template repo
- Loading branch information
Showing
1 changed file
with
40 additions
and
61 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -101,26 +101,27 @@ runs: | |
steps: | ||
|
||
- name: "Parameter Summary" | ||
shell: bash | ||
run: | | ||
echo "OCTOPUS_DEPLOY_PACKAGE: ${{inputs.OCTOPUS_DEPLOY_PACKAGE}}" | ||
echo "OCTOPUS_DEPLOY_PACKAGE_ZIP: ${{inputs.OCTOPUS_DEPLOY_PACKAGE_ZIP}}" | ||
echo "OCTOPUS_PROJECT: ${{inputs.OCTOPUS_PROJECT}}" | ||
echo "OCTOPUS_CHANNEL: ${{inputs.OCTOPUS_CHANNEL}}" | ||
echo "OCTOPUS_DEPLOY_TO: ${{inputs.OCTOPUS_DEPLOY_TO}}" | ||
echo "OCTOPUS_SERVER: ${{inputs.OCTOPUS_SERVER}}" | ||
echo "OCTOPUS_API_KEY: ${{inputs.OCTOPUS_API_KEY}}" | ||
echo "OCTOPUS_SPACE_NAME: ${{inputs.OCTOPUS_SPACE}}" | ||
echo "NUGET_API_KEY: ${{inputs.NUGET_API_KEY}}" | ||
echo "NUGET_FEED: ${{inputs.NUGET_FEED}}" | ||
echo "NUGET_SYMBOL_FEED: ${{inputs.NUGET_SYMBOL_FEED}}" | ||
echo "NUGET_PUBLIC_RESTORE_FEED_CACHE: ${{inputs.NUGET_PUBLIC_RESTORE_FEED_CACHE}}" | ||
echo "NUGET_PUBLIC_RESTORE_FEED: ${{inputs.NUGET_PUBLIC_RESTORE_FEED}}" | ||
echo "NUGET_ADDITIONAL_RESTORE_FEED_RELEASE_CACHE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE_CACHE}}" | ||
echo "NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE}}" | ||
echo "NUGET_ADDITIONAL_RESTORE_FEED_RELEASE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE}}" | ||
echo "NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE}}" | ||
echo "NUGET_PACK: ${{inputs.NUGET_PACK}}" | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
core.info('OCTOPUS_DEPLOY_PACKAGE: ${{inputs.OCTOPUS_DEPLOY_PACKAGE}}'); | ||
core.info('OCTOPUS_DEPLOY_PACKAGE_ZIP: ${{inputs.OCTOPUS_DEPLOY_PACKAGE_ZIP}}'); | ||
core.info('OCTOPUS_PROJECT: ${{inputs.OCTOPUS_PROJECT}}'); | ||
core.info('OCTOPUS_CHANNEL: ${{inputs.OCTOPUS_CHANNEL}}'); | ||
core.info('OCTOPUS_DEPLOY_TO: ${{inputs.OCTOPUS_DEPLOY_TO}}'); | ||
core.info('OCTOPUS_SERVER: ${{inputs.OCTOPUS_SERVER}}'); | ||
core.info('OCTOPUS_API_KEY: ${{inputs.OCTOPUS_API_KEY}}'); | ||
core.info('OCTOPUS_SPACE_NAME: ${{inputs.OCTOPUS_SPACE}}'); | ||
core.info('NUGET_API_KEY: ${{inputs.NUGET_API_KEY}}'); | ||
core.info('NUGET_FEED: ${{inputs.NUGET_FEED}}'); | ||
core.info('NUGET_SYMBOL_FEED: ${{inputs.NUGET_SYMBOL_FEED}}'); | ||
core.info('NUGET_PUBLIC_RESTORE_FEED_CACHE: ${{inputs.NUGET_PUBLIC_RESTORE_FEED_CACHE}}'); | ||
core.info('NUGET_PUBLIC_RESTORE_FEED: ${{inputs.NUGET_PUBLIC_RESTORE_FEED}}'); | ||
core.info('NUGET_ADDITIONAL_RESTORE_FEED_RELEASE_CACHE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE_CACHE}}'); | ||
core.info('NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE_CACHE}}'); | ||
core.info('NUGET_ADDITIONAL_RESTORE_FEED_RELEASE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_RELEASE}}'); | ||
core.info('NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE: ${{inputs.NUGET_ADDITIONAL_RESTORE_FEED_PRERELEASE}}'); | ||
core.info('NUGET_PACK: ${{inputs.NUGET_PACK}}'); | ||
- name: "Fetch tags and master" | ||
shell: bash | ||
|
@@ -142,13 +143,14 @@ runs: | |
[[ -f Wallet.json ]] && echo 'NPM_SIGNING_EXIST=true' >> "$GITHUB_OUTPUT" || echo 'NPM_SIGNING_EXIST=false' >> "$GITHUB_OUTPUT" | ||
- name: "Check Files Results" | ||
shell: bash | ||
run: | | ||
echo "CSPROJ_EXIST: ${{steps.check_files.outputs.CSPROJ_EXIST}}" | ||
echo "SLN_EXIST: ${{steps.check_files.outputs.SLN_EXIST}}" | ||
echo "SQL_EXIST: ${{steps.check_files.outputs.SQL_EXIST}}" | ||
echo "NPM_EXIST: ${{steps.check_files.outputs.NPM_EXIST}}" | ||
echo "NPM_SIGNING_EXIST: ${{steps.check_files.outputs.NPM_SIGNING_EXIST}}" | ||
uses: actions/[email protected] | ||
with: | ||
script: | | ||
core.info('CSPROJ_EXIST: ${{steps.check_files.outputs.CSPROJ_EXIST}}'); | ||
core.info('SLN_EXIST: ${{steps.check_files.outputs.SLN_EXIST}}'); | ||
core.info('SQL_EXIST: ${{steps.check_files.outputs.SQL_EXIST}}'); | ||
core.info('NPM_EXIST: ${{steps.check_files.outputs.NPM_EXIST}}'); | ||
core.info('NPM_SIGNING_EXIST: ${{steps.check_files.outputs.NPM_SIGNING_EXIST}}'); | ||
- name: "Dotnet: Prepare build" | ||
working-directory: ${{github.workspace}} | ||
|
@@ -177,18 +179,9 @@ runs: | |
- if: |- | ||
steps.build_tools.outputs.BUILD_ENV == 'true' && | ||
inputs.NUGET_PACK == 'true' | ||
name: "Install Multi-Push Tool" | ||
shell: bash | ||
run: dotnet tool install --local Credfeto.Package.Push | ||
env: | ||
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_ReadyToRun: "0" | ||
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
uses: ./.github/actions/dotnet-tool | ||
with: | ||
TOOL_NAME: Credfeto.Package.Push | ||
- name: "Get Unique Build Number" | ||
if: steps.build_tools.outputs.BUILD_ENV == 'true' | ||
|
@@ -237,31 +230,17 @@ runs: | |
- name: "Install Package Builder" | ||
if: steps.check_files.outputs.NPM_EXIST == 'true' && steps.check_files.outputs.NPM_SIGNING_EXIST == 'true' | ||
shell: bash | ||
run: dotnet tool install --local FunFair.Content.Packager.Cmd --version ${{inputs.NPM_PRODUCTION_PACKAGER_VERSION}} | ||
env: | ||
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_ReadyToRun: "0" | ||
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
uses: ./.github/actions/dotnet-tool | ||
with: | ||
TOOL_NAME: FunFair.Content.Packager.Cmd | ||
TOOL_VERSION: ${{inputs.NPM_PRODUCTION_PACKAGER_VERSION}} | ||
|
||
- name: "Install Package Store Signer" | ||
if: steps.check_files.outputs.NPM_EXIST == 'true' && steps.check_files.outputs.NPM_SIGNING_EXIST == 'true' | ||
shell: bash | ||
run: dotnet tool install --local FunFair.Content.PackageSigner.Cmd --version ${{inputs.NPM_PRODUCTION_PACKAGER_VERSION}} | ||
env: | ||
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_ReadyToRun: "0" | ||
DOTNET_TC_QuickJitForLoops: "1" | ||
DOTNET_TieredPGO: "1" | ||
uses: ./.github/actions/dotnet-tool | ||
with: | ||
TOOL_NAME: FunFair.Content.PackageSigner.Cmd | ||
TOOL_VERSION: ${{inputs.NPM_PRODUCTION_PACKAGER_VERSION}} | ||
|
||
- name: "Install Octopus Deploy CLI" | ||
if: steps.build_tools.outputs.BUILD_ENV == 'true' && inputs.OCTOPUS_DEPLOY_PACKAGE != '' | ||
|