File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 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+
11+ name : Release Please
12+
13+ on :
14+ push :
15+ branches :
16+ - main
17+ workflow_dispatch :
18+
19+ permissions :
20+ contents : read
21+
22+ jobs :
23+ release :
24+ runs-on : ubuntu-latest
25+ steps :
26+ - uses : actions/checkout@v6
27+
28+ - name : Generate GitHub App token
29+ id : app-token
30+ uses : actions/create-github-app-token@v2
31+ with :
32+ app-id : ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
33+ private-key : ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
34+
35+ - name : Release Please
36+ uses : googleapis/release-please-action@v4
37+ with :
38+ token : ${{ steps.app-token.outputs.token }}
39+ config-file : release-please-config.json
40+ manifest-file : .release-please-manifest.json
You can’t perform that action at this time.
0 commit comments