Skip to content

Commit

Permalink
Work CI-CD
Browse files Browse the repository at this point in the history
- Change config for nbgv to have short versions.
- Pipeline now creates github releases.
- Fix conditions to run update dependents job.
- Move update to test framework higher in the update list.
  • Loading branch information
josesimoes committed Dec 22, 2022
1 parent ea6c77f commit f3e9528
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
8 changes: 5 additions & 3 deletions azure-pipelines.yml
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,8 @@ jobs:
condition: >-
and(
succeeded(),
startsWith(variables['Build.SourceBranch'], 'refs/tags/v'),
eq(variables['System.PullRequest.PullRequestId'], ''),
startsWith(variables['Build.SourceBranch'], 'refs/heads/main'),
not(contains(variables['Build.SourceBranch'], 'preview')),
eq(variables['StartReleaseCandidate'], false)
)
Expand Down Expand Up @@ -141,7 +142,8 @@ jobs:
),
and(
succeeded(),
contains(variables['getCommitMessage.COMMIT_MESSAGE'], '***UPDATE_DEPENDENTS***'),
eq(variables['System.PullRequest.PullRequestId'], ''),
contains(variables['Build.SourceVersionMessage'], '***UPDATE_DEPENDENTS***'),
eq(variables['StartReleaseCandidate'], 'false')
),
eq(variables['UPDATE_DEPENDENTS'], 'true')
Expand All @@ -166,10 +168,10 @@ jobs:
- template: azure-pipelines-templates/update-dependents.yml@templates
parameters:
repositoriesToUpdate: |
nanoFramework.TestFramework
nanoFramework.Device.OneWire
nanoFramework.Runtime.Events
nanoFramework.Runtime.Native
nanoFramework.TestFramework
nanoFramework.Logging
nanoFramework.Networking.Sntp
nanoFramework.Hardware.Stm32
Expand Down
2 changes: 1 addition & 1 deletion version.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"$schema": "https://raw.githubusercontent.com/dotnet/Nerdbank.GitVersioning/master/src/NerdBank.GitVersioning/version.schema.json",
"version": "1.14",
"assemblyVersion": {
"precision": "revision"
"precision": "build"
},
"semVer1NumericIdentifierPadding": 3,
"nuGetPackageVersion": {
Expand Down

0 comments on commit f3e9528

Please sign in to comment.