-
Notifications
You must be signed in to change notification settings - Fork 703
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
Showing
1 changed file
with
11 additions
and
13 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 |
---|---|---|
|
@@ -16,21 +16,19 @@ jobs: | |
uses: actions/checkout@v2 | ||
- name: Setup MSBuild | ||
uses: microsoft/[email protected] | ||
- name: Define CI Version | ||
run: $env:NUPKG_VER = ($env:NUPKG_MAJOR + "-" + $env:GITHUB_RUN_ID) | ||
- name: Define Release Version | ||
if: github.event_name == 'release' | ||
run: $env:NUPKG_VER = $env:GITHUB_REF.Substring($env:GITHUB_REF.LastIndexOf('/') + 1) | ||
- name: Setup Environment | ||
run: New-Item -ItemType Directory -Force -Path .\artifacts | ||
- name: NuGet Restore ZXing.Net.Mobile | ||
- name: NuGet Restore | ||
run: msbuild /t:Restore /p:Configuration=Release .\ZXing.Net.Mobile.sln | ||
- name: Build ZXing.Net.Mobile | ||
- name: Build | ||
run: msbuild /t:Build /p:Configuration=Release .\ZXing.Net.Mobile.sln | ||
- name: NuGet Pack ZXing.Net.Mobile | ||
run: msbuild /t:Pack /p:Configuration=Release /p:PackageOutputPath=..\artifacts /p:PackageVersion=$NUPKG_VER /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg .\ZXing.Net.Mobile\ZXing.Net.Mobile.csproj | ||
- name: NuGet Pack ZXing.Net.Mobile.Forms | ||
run: msbuild /t:Pack /p:Configuration=Release /p:PackageOutputPath=..\artifacts /p:PackageVersion=$NUPKG_VER /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg .\ZXing.Net.Mobile.Forms\ZXing.Net.Mobile.Forms.csproj | ||
- name: Package NuGets | ||
run: | | ||
$pkgVer = ($env:NUPKG_MAJOR + "-alpha" + $env:GITHUB_RUN_ID) | ||
if ($env:GITHUB_EVENT_NAME -eq "release") { | ||
$pkgVer = $env:GITHUB_REF.Substring($env:GITHUB_REF.LastIndexOf('/') + 1) | ||
} | ||
New-Item -ItemType Directory -Force -Path .\artifacts | ||
msbuild /t:Pack /p:Configuration=Release /p:PackageOutputPath=..\artifacts /p:PackageVersion=$pkgVer /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg .\ZXing.Net.Mobile\ZXing.Net.Mobile.csproj | ||
msbuild /t:Pack /p:Configuration=Release /p:PackageOutputPath=..\artifacts /p:PackageVersion=$pkgVer /p:IncludeSymbols=true /p:SymbolPackageFormat=snupkg .\ZXing.Net.Mobile.Forms\ZXing.Net.Mobile.Forms.csproj | ||
- name: Upload Artifacts | ||
uses: actions/upload-artifact@v1 | ||
with: | ||
|