Skip to content
This repository was archived by the owner on Aug 29, 2025. It is now read-only.

Commit f5eb478

Browse files
authored
ci: add release please bot (#422)
* ci: add release-please github action * ci: update release-please config
1 parent 1ed2d86 commit f5eb478

File tree

5 files changed

+61
-19
lines changed

5 files changed

+61
-19
lines changed

.azure-pipelines/release-cli.yaml

Lines changed: 5 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -668,24 +668,19 @@ stages:
668668
- task: DownloadPipelineArtifact@2
669669
inputs:
670670
path: $(artifactsDownloadLocation)
671-
- pwsh: |
672-
$isPreview = '$(branchOrTagName)'.Contains("preview")
673-
Write-Host "##vso[task.setvariable variable=IS_PREVIEW]$isPreview"
674671
- task: GithubRelease@1
675-
displayName: 'Create GitHub Draft Release'
672+
displayName: 'Upload Artifacts to GitHub Release'
676673
inputs:
677674
gitHubConnection: $(repositoryConnection)
678675
repositoryName: '$(Build.Repository.Name)'
679-
action: create
680-
tagSource: 'gitTag'
681-
isDraft: true
682-
addChangeLog: true
683-
changeLogCompareToRelease: lastNonDraftRelease
676+
action: edit
677+
tag: $(branchOrTagName)
678+
addChangeLog: false
679+
assetUploadMode: replace
684680
assets: |
685681
$(artifactsDownloadLocation)/build-output-linux-*/*.tar*
686682
$(artifactsDownloadLocation)/sign-output-*/*.tar*
687683
$(artifactsDownloadLocation)/sign-output-*/*.zip
688-
isPreRelease: $(IS_PREVIEW)
689684
690685
- deployment: deployNuget
691686
displayName: Deploy Nuget
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
on:
2+
push:
3+
branches:
4+
- main
5+
6+
permissions:
7+
contents: write
8+
pull-requests: write
9+
10+
name: release-please
11+
12+
jobs:
13+
release-please:
14+
runs-on: ubuntu-latest
15+
steps:
16+
- uses: google-github-actions/release-please-action@v4
17+
with:
18+
token: ${{ secrets.RELEASE_PLEASE_TOKEN }}
19+
config-file: release-please-config.json
20+
manifest-file: .release-please-manifest.json
21+
target-branch: main

.release-please-manifest.json

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
".": "1.2.0"
3+
}

CHANGELOG.md

Lines changed: 0 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,6 @@
22

33
All notable changes to this project will be documented in this file.
44

5-
The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/),
6-
and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html).
7-
8-
## [Unreleased]
9-
10-
### Added
11-
12-
### Changed
13-
145
## [1.2.0] - 2024-01-22
156

167
### Added

release-please-config.json

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
{
2+
"bootstrap-sha": "c4f91f1e8107dc09feb611174308ea6f5618874b",
3+
"exclude-paths": [
4+
".azure-pipelines",
5+
".devcontainer",
6+
".idea",
7+
".github",
8+
".vs",
9+
".vscode"
10+
],
11+
"release-type": "simple",
12+
"bump-minor-pre-major": true,
13+
"bump-patch-for-minor-pre-major": true,
14+
"include-component-in-tag": false,
15+
"include-v-in-tag": true,
16+
"draft": false,
17+
"prerelease": false,
18+
"packages": {
19+
".": {
20+
"package-name": "msgraph-cli",
21+
"changelog-path": "CHANGELOG.md",
22+
"extra-files": [
23+
{
24+
"type": "xml",
25+
"path": "src/msgraph-cli.csproj",
26+
"xpath": "//Project/PropertyGroup/Version"
27+
}
28+
]
29+
}
30+
},
31+
"$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json"
32+
}

0 commit comments

Comments
 (0)