-
Notifications
You must be signed in to change notification settings - Fork 40
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
63569a6
commit 0b4cfec
Showing
1 changed file
with
2 additions
and
26 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 |
---|---|---|
|
@@ -28,28 +28,6 @@ jobs: | |
with: | ||
dotnet-version: '3.1.x' | ||
|
||
- name: Setup Version | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.3.6' | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE | ||
|
||
- name: Determine Version | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
useConfigFile: true | ||
env: | ||
ACTIONS_ALLOW_UNSECURE_COMMANDS: TRUE | ||
|
||
- name: get SemVer | ||
id: gitversion | ||
run: | | ||
echo "SemVer: v$($env:GitVersion_SemVer)" | ||
Write-Host "::set-output name=semver::v$($env:GitVersion_SemVer)" | ||
$fileName = "dummy-v$($env:GitVersion_SemVer)" | ||
echo "SemVerMMP: v$($env:GitVersion_MajorMinorPatch)" | ||
Write-Host "Filename: '$fileName'" | ||
|
||
- name: Setup msbuild | ||
uses: microsoft/[email protected] | ||
|
@@ -80,16 +58,14 @@ jobs: | |
$sourceFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "*" | ||
$outFolder = Join-Path $env:GITHUB_WORKSPACE "out" | Join-Path -ChildPath "sourcegrid" | ||
New-Item -ItemType Directory -Force -Path $outFolder | ||
$fileName = "sourcegrid-5.3.6.zip" | ||
$fileName = "sourcegrid-5.0.1.zip" | ||
Write-Host "Filename: '$fileName'" | ||
Write-Host "sourceFolder: '$sourceFolder'" | ||
Write-Host "Outfolder: '$outFolder'" | ||
Write-Host "::set-output name=sourcegrid::$($fileName)" | ||
$outPath = Join-Path $outFolder $fileName | ||
Compress-Archive -DestinationPath $outPath -Path $sourceFolder -CompressionLevel Optimal | ||
Copy-Item -Path "$sourceFolder" -Force -PassThru | | ||
Get-ChildItem | | ||
Compress-Archive -DestinationPath "$outFolder\sourcegrid.zip" | ||
|
||
- name: Sleep for 300 seconds | ||
run: Start-Sleep -s 300 | ||
|