Skip to content

Commit

Permalink
Добавлен скрипт для публикации решения
Browse files Browse the repository at this point in the history
  • Loading branch information
voidmain02 committed Jul 30, 2019
1 parent 2a1c1e0 commit 506f496
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -347,3 +347,6 @@ healthchecksdb

# Backup folder for Package Reference Convert tool in Visual Studio 2017
MigrationBackup/

# Dist
dist/
18 changes: 18 additions & 0 deletions publish.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
$targetRef = $args[0]
$archiveName = $targetRef
if (!$targetRef) {
$archiveName = "current"
}
$targetArchPath = Join-Path "dist" "$archiveName.zip"
$projects = "MiniAiCup.Paperio.Client", "MiniAiCup.Paperio.Core"
$filesToExclude = "*AssemblyInfo.cs"

if ($targetRef) {
git checkout $targetRef
}

$projects | Get-ChildItem -Include *.cs -Exclude $filesToExclude -Recurse | Compress-Archive -DestinationPath $targetArchPath -Force -Confirm:$false

if ($targetRef) {
git checkout -
}

0 comments on commit 506f496

Please sign in to comment.