1+ # # -----------------------------------------------------------------------------
2+ # Copyright (c) Microsoft Corporation. All rights reserved.
3+ # Licensed under the MIT License. See LICENSE.txt in the project root for license information.
4+ # # -----------------------------------------------------------------------------
5+ #
6+ # Summary:
7+ # This GitHub Actions workflow automates the release process using Release Please.
8+ # It triggers on pushes to the main branch, generates a GitHub App token using organization
9+ # variables and secrets, and then runs the release-please-action to manage versioning and changelogs.
10+
111name : Release Please for Master
212
313on :
@@ -10,12 +20,21 @@ jobs:
1020 runs-on : ubuntu-latest
1121 steps :
1222 - name : Checkout repository
13- uses : actions/checkout@v3
23+ uses : actions/checkout@v4
24+
25+ - name : Generate GitHub App token
26+ id : app-token
27+ uses : actions/create-github-app-token@v2
28+ with :
29+ app-id : ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
30+ private-key : ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
1431
15- - name : Run Release Please for Master
32+ - name : Release Please
1633 uses : googleapis/release-please-action@v4
1734 with :
18- token : ${{ secrets.GITHUB_TOKEN }}
19- target-branch : master
35+ token : ${{ steps.app-token.outputs.token }}
2036 config-file : release-please-config.json
21- manifest-file : .release-please-manifest.json
37+ manifest-file : .release-please-manifest.json
38+ manifest : true
39+ primaryBranch : dev
40+ handleGHRelease : true
0 commit comments