Skip to content

Commit

Permalink
Adds PublishLambda.ps1
Browse files Browse the repository at this point in the history
  • Loading branch information
alanedwardes committed Apr 23, 2021
1 parent 0ab5336 commit 338d3cc
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions PublishLambda.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
$ErrorActionPreference = "Stop"

$OutputFolder = "hosting/Estranged.Lfs.Hosting.Lambda/bin/Release/netcoreapp3.1/linux-x64/publish"
$OutputFile = "Estranged.Lfs.Hosting.Lambda.zip"
$InputProject = "hosting/Estranged.Lfs.Hosting.Lambda/Estranged.Lfs.Hosting.Lambda.csproj"

Remove-Item -LiteralPath $OutputFile -ErrorAction Ignore
Remove-Item -LiteralPath $OutputFolder -Force -Recurse -ErrorAction Ignore
dotnet publish $InputProject --runtime linux-x64 --configuration Release
Compress-Archive -Path $OutputFolder/* -DestinationPath $OutputFile

0 comments on commit 338d3cc

Please sign in to comment.