-
Notifications
You must be signed in to change notification settings - Fork 33
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
22df529
commit e9c2801
Showing
9 changed files
with
49 additions
and
116 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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
name: Azure Static Web Apps CI/CD | ||
name: Azure Static Web Apps CI/CD | ||
|
||
on: | ||
push: | ||
|
@@ -27,27 +27,21 @@ jobs: | |
with: | ||
fetch-depth: 0 # Required for gitversion | ||
submodules: true | ||
|
||
- name: Install GitVersion | ||
uses: gittools/actions/gitversion/[email protected] | ||
with: | ||
versionSpec: '5.10.3' | ||
|
||
- name: Determine Version | ||
id: gitversion | ||
uses: gittools/actions/gitversion/[email protected] | ||
|
||
- uses: dotnet/nbgv@f088059084cb5d872e9d1a994433ca6440c2bf72 # v0.4.2 | ||
id: nbgv | ||
with: | ||
useConfigFile: true | ||
configFilePath: gitversion.yml | ||
toolVersion: 3.6.139 | ||
setAllVars: true | ||
|
||
- name: Setup dotnet 8.0.300 | ||
uses: actions/[email protected] | ||
with: | ||
dotnet-version: '8.0.300' | ||
|
||
- run: | | ||
cd src/samples/UWP/Uno.Themes.Samples.Wasm | ||
dotnet build -c Release "/p:PackageVersion=${{ steps.gitversion.outputs.fullSemVer }}" /p:TargetFrameworkOverride=net8.0 | ||
dotnet build -c Release "/p:PackageVersion=${{ steps.nbgv.outputs.SemVer2 }}" /p:TargetFrameworkOverride=net8.0 | ||
- uses: actions/upload-artifact@v4 | ||
with: | ||
|
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
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
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
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
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
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 |
---|---|---|
@@ -1,28 +1,15 @@ | ||
steps: | ||
- task: UseDotNet@2 | ||
displayName: 'Use .Net Core runtime 5.0.3' | ||
inputs: | ||
packageType: runtime | ||
version: 5.0.3 | ||
- pwsh: | | ||
dotnet tool uninstall nbgv -g | ||
dotnet tool install nbgv -g --version 3.6.139 | ||
nbgv cloud -a | ||
displayName: Version with NBGV | ||
name: NBGV | ||
|
||
- task: UseDotNet@2 | ||
displayName: 'Use .Net Core runtime 3.1.0' | ||
inputs: | ||
packageType: runtime | ||
version: 3.1.0 | ||
# Restore nuget.org to the list of existing sources, .NET 6 Pre 2 may somehow remove it | ||
- powershell: | | ||
dotnet nuget add source https://api.nuget.org/v3/index.json -n nuget.org | Out-Null | ||
$global:LASTEXITCODE = 0 | ||
displayName: Adjust nuget.org source | ||
- task: gitversion/setup@0 | ||
inputs: | ||
versionSpec: '5.6.6' | ||
|
||
- task: gitversion/execute@0 | ||
inputs: | ||
updateAssemblyInfo: 'False' | ||
useConfigFile: true | ||
configFilePath: ./gitversion.yml | ||
displayName: Use GitVersion | ||
- pwsh: | | ||
$InformationalVersion="$(NBGV_SemVer2)+$(NBGV_BuildingRef)".Replace("refs/heads/","").Replace("/","-") | ||
echo "##vso[task.setvariable variable=NBGV_InformationalVersion;]$InformationalVersion" | ||
echo "##vso[task.setvariable variable=NBGV_InformationalVersion;isOutput=true;]$InformationalVersion" | ||
echo "Informational Version: $InformationalVersion" | ||
displayName: Generate Informational Version | ||
name: NBGV_InformationalVersion |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{ | ||
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/main/src/NerdBank.GitVersioning/version.schema.json", | ||
"version": "5.5-dev.{height}", | ||
"versionHeightOffset": 86, | ||
"nuGetPackageVersion": { | ||
"semVer": 2.0 | ||
}, | ||
"publicReleaseRefSpec": [ | ||
"^refs/heads/main$", | ||
"^refs/heads/release/stable/\\d+(?:\\.\\d+)?$" | ||
], | ||
"cloudBuild": { | ||
"setAllVariables": true, | ||
"buildNumber": { | ||
"enabled": true | ||
} | ||
}, | ||
"release": { | ||
"branchName": "release/stable/{version}", | ||
"firstUnstableTag": "dev" | ||
} | ||
} |