diff --git a/.azure-pipelines/release-cli.yaml b/.azure-pipelines/release-cli.yaml index 8751a7b92b..1fa2b859a9 100644 --- a/.azure-pipelines/release-cli.yaml +++ b/.azure-pipelines/release-cli.yaml @@ -668,24 +668,19 @@ stages: - task: DownloadPipelineArtifact@2 inputs: path: $(artifactsDownloadLocation) - - pwsh: | - $isPreview = '$(branchOrTagName)'.Contains("preview") - Write-Host "##vso[task.setvariable variable=IS_PREVIEW]$isPreview" - task: GithubRelease@1 - displayName: 'Create GitHub Draft Release' + displayName: 'Upload Artifacts to GitHub Release' inputs: gitHubConnection: $(repositoryConnection) repositoryName: '$(Build.Repository.Name)' - action: create - tagSource: 'gitTag' - isDraft: true - addChangeLog: true - changeLogCompareToRelease: lastNonDraftRelease + action: edit + tag: $(branchOrTagName) + addChangeLog: false + assetUploadMode: replace assets: | $(artifactsDownloadLocation)/build-output-linux-*/*.tar* $(artifactsDownloadLocation)/sign-output-*/*.tar* $(artifactsDownloadLocation)/sign-output-*/*.zip - isPreRelease: $(IS_PREVIEW) - deployment: deployNuget displayName: Deploy Nuget diff --git a/.github/workflows/release-please.yml b/.github/workflows/release-please.yml new file mode 100644 index 0000000000..b8cce112c0 --- /dev/null +++ b/.github/workflows/release-please.yml @@ -0,0 +1,21 @@ +on: + push: + branches: + - main + +permissions: + contents: write + pull-requests: write + +name: release-please + +jobs: + release-please: + runs-on: ubuntu-latest + steps: + - uses: google-github-actions/release-please-action@v4 + with: + token: ${{ secrets.RELEASE_PLEASE_TOKEN }} + config-file: release-please-config.json + manifest-file: .release-please-manifest.json + target-branch: main diff --git a/.release-please-manifest.json b/.release-please-manifest.json new file mode 100644 index 0000000000..09a2522824 --- /dev/null +++ b/.release-please-manifest.json @@ -0,0 +1,3 @@ +{ + ".": "1.2.0" +} diff --git a/CHANGELOG.md b/CHANGELOG.md index 384d9566ec..1b173765af 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,15 +2,6 @@ All notable changes to this project will be documented in this file. -The format is based on [Keep a Changelog](https://keepachangelog.com/en/1.0.0/), -and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0.html). - -## [Unreleased] - -### Added - -### Changed - ## [1.2.0] - 2024-01-22 ### Added diff --git a/release-please-config.json b/release-please-config.json new file mode 100644 index 0000000000..c408393d95 --- /dev/null +++ b/release-please-config.json @@ -0,0 +1,32 @@ +{ + "bootstrap-sha": "c4f91f1e8107dc09feb611174308ea6f5618874b", + "exclude-paths": [ + ".azure-pipelines", + ".devcontainer", + ".idea", + ".github", + ".vs", + ".vscode" + ], + "release-type": "simple", + "bump-minor-pre-major": true, + "bump-patch-for-minor-pre-major": true, + "include-component-in-tag": false, + "include-v-in-tag": true, + "draft": false, + "prerelease": false, + "packages": { + ".": { + "package-name": "msgraph-cli", + "changelog-path": "CHANGELOG.md", + "extra-files": [ + { + "type": "xml", + "path": "src/msgraph-cli.csproj", + "xpath": "//Project/PropertyGroup/Version" + } + ] + } + }, + "$schema": "https://raw.githubusercontent.com/googleapis/release-please/main/schemas/config.json" +}