Skip to content

Commit 7b01a00

Browse files
authored
Merge pull request #2466 from kilifu/ci/release-please-wf
ci: adds release please workflow to replace sunset app
2 parents 9318c00 + b81947c commit 7b01a00

File tree

1 file changed

+36
-0
lines changed

1 file changed

+36
-0
lines changed
Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
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+
18+
jobs:
19+
release:
20+
runs-on: ubuntu-latest
21+
steps:
22+
- uses: actions/checkout@v4
23+
24+
- name: Generate GitHub App token
25+
id: app-token
26+
uses: actions/create-github-app-token@v2
27+
with:
28+
app-id: ${{ vars.RELEASE_PLEASE_TOKEN_PROVIDER_APP_ID }}
29+
private-key: ${{ secrets.RELEASE_PLEASE_TOKEN_PROVIDER_PEM }}
30+
31+
- name: Release Please
32+
uses: googleapis/release-please-action@v4
33+
with:
34+
token: ${{ steps.app-token.outputs.token }}
35+
config-file: release-please-config.json
36+
manifest-file: .release-please-manifest.json

0 commit comments

Comments
 (0)