Skip to content

Commit

Permalink
Merge pull request #1034 from TelegramBots/develop
Browse files Browse the repository at this point in the history
Release v17
  • Loading branch information
tuscen authored Nov 17, 2021
2 parents e3bfc42 + 1011514 commit 6d4f852
Show file tree
Hide file tree
Showing 7 changed files with 24 additions and 64 deletions.
10 changes: 2 additions & 8 deletions .azure-pipelines/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,27 +25,21 @@ stages:
pool:
vmImage: $(vmImage)
steps:
- script: node .azure-pipelines/setVersionVariables.js
env:
VERSION_PREFIX: $(versionPrefix)
VERSION_SUFFIX: $(versionSuffix)
CI_VERSION_SUFFIX: $(ciVersionSuffix)
displayName: Set version variables
- task: DotNetCoreCLI@2
displayName: Build project with CI version
inputs:
command: build
projects: $(projectPath)
arguments: >
--configuration $(buildConfiguration)
-p:Version=$(CI_VERSION)
-p:Version=$(ciVersion)
-p:CI_EMBED_SYMBOLS=true
- bash: >
dotnet pack
--no-build
--output "$(Build.ArtifactStagingDirectory)/packages"
--configuration $(buildConfiguration)
-p:Version=$(CI_VERSION)
-p:Version=$(ciVersion)
-p:CI_EMBED_SYMBOLS=true
$(projectPath)
displayName: Create CI nuget package
Expand Down
4 changes: 2 additions & 2 deletions .azure-pipelines/develop-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ stages:
buildConfiguration: $(buildConfiguration)
projects: $(unitTestsProject)
strategies:
- Windows: windows-2019
- Windows: windows-2022
- Ubuntu: ubuntu-20.04
- macOS: macOS-10.15
- macOS: macOS-11
- stage: IntegrationTests
displayName: 🧪 Integration tests
jobs:
Expand Down
18 changes: 6 additions & 12 deletions .azure-pipelines/release-pipeline.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,26 +20,20 @@ pool:
vmImage: $(vmImage)

steps:
- script: node .azure-pipelines/setVersionVariables.js
env:
VERSION_PREFIX: $(versionPrefix)
VERSION_SUFFIX: $(versionSuffix)
CI_VERSION_SUFFIX: $(ciVersionSuffix)
displayName: Set version variables
- task: DotNetCoreCLI@2
displayName: Build project with release version
inputs:
command: build
projects: $(projectPath)
arguments: >
--configuration $(buildConfiguration)
-p:Version=$(RELEASE_VERSION)
-p:Version=$(releaseVersion)
- bash: >
dotnet pack
--no-build
--output "$(Build.ArtifactStagingDirectory)/packages"
--configuration $(buildConfiguration)
-p:Version=$(RELEASE_VERSION)
-p:Version=$(releaseVersion)
$(projectPath)
displayName: Create release nuget package
- bash: >
Expand All @@ -54,12 +48,12 @@ steps:
action: create
target: $(Build.SourceVersion)
tagSource: manual
tag: v$(RELEASE_VERSION)
tagPattern: v$(RELEASE_VERSION)
title: v$(RELEASE_VERSION)
tag: v$(releaseVersion)
tagPattern: v$(releaseVersion)
title: v$(releaseVersion)
githubConnection: githubRelease
repositoryName: $(Build.Repository.Name)
isPreRelease: $(IS_PRE_RELEASE)
isPreRelease: $(isPreRelease)
addChangeLog: false
assets: $(Build.ArtifactStagingDirectory)/packages/*
displayName: Create Github Release
40 changes: 0 additions & 40 deletions .azure-pipelines/setVersionVariables.js

This file was deleted.

14 changes: 13 additions & 1 deletion .azure-pipelines/variables.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,21 @@ variables:
- name: versionPrefix
value: 17.0.0
- name: versionSuffix
value: "alpha.5"
value: ''
- name: ciVersionSuffix
value: ci.$(Build.BuildId)+git.commit.$(Build.SourceVersion)
- name: isPreRelease
value: ${{ ne(variables.versionSuffix, '') }}
- name: releaseVersion
${{ if eq(variables.isPreRelease, true) }}:
value: $(versionPrefix)-$(versionSuffix)
${{ else }}:
value: $(versionPrefix)
- name: ciVersion
${{ if eq(variables.isPreRelease, true) }}:
value: $(versionPrefix)-$(versionSuffix).$(ciVersionSuffix)
${{ else }}:
value: $(versionPrefix)-$(ciVersionSuffix)
- name: buildConfiguration
value: Release
- name: vmImage
Expand Down
1 change: 1 addition & 0 deletions .gitpod.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
image: gitpod/workspace-dotnet
1 change: 0 additions & 1 deletion Telegram.Bot.sln
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = ".azure-pipelines", ".azure-
.azure-pipelines\develop-pipeline.yml = .azure-pipelines\develop-pipeline.yml
.azure-pipelines\manual-pipeline.yml = .azure-pipelines\manual-pipeline.yml
.azure-pipelines\release-pipeline.yml = .azure-pipelines\release-pipeline.yml
.azure-pipelines\setVersionVariables.js = .azure-pipelines\setVersionVariables.js
.azure-pipelines\variables.yml = .azure-pipelines\variables.yml
EndProjectSection
EndProject
Expand Down

0 comments on commit 6d4f852

Please sign in to comment.