Skip to content

Commit cfb859c

Browse files
committed
ci: adds workflow dispatch to release please
1 parent 3ef3cf2 commit cfb859c

1 file changed

Lines changed: 40 additions & 0 deletions

File tree

.github/release-please-gha.yml

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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

0 commit comments

Comments
 (0)