Skip to content

Commit 80e9633

Browse files
committed
ci: setup release please CI workflow
1 parent e93549e commit 80e9633

File tree

2 files changed

+43
-0
lines changed

2 files changed

+43
-0
lines changed
+36
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,36 @@
1+
name: Release Please
2+
3+
on:
4+
workflow_call:
5+
outputs:
6+
apps-chart-released:
7+
value: ${{ jobs.release_please.apps-chart-released }}
8+
graph-chart-released:
9+
value: ${{ jobs.release_please.graph-chart-released }}
10+
monitoring-chart-released:
11+
value: ${{ jobs.release_please.monitoring-chart-released }}
12+
supergraph-chart-released:
13+
value: ${{ jobs.release_please.supergraph-chart-released }}
14+
15+
jobs:
16+
release_please:
17+
runs-on: ubuntu-latest
18+
permissions:
19+
contents: write
20+
pull-requests: write
21+
outputs:
22+
apps-chart-released: ${{ contains(steps.release.outputs.paths_released, 'charts/apps') }}
23+
graph-chart-released: ${{ contains(steps.release.outputs.paths_released, 'charts/graph') }}
24+
monitoring-chart-released: ${{ contains(steps.release.outputs.paths_released, 'charts/monitoring') }}
25+
supergraph-chart-released: ${{ contains(steps.release.outputs.paths_released, 'charts/supergraph') }}
26+
steps:
27+
- name: Release Please
28+
id: release
29+
uses: googleapis/[email protected]
30+
with:
31+
token: ${{ secrets.GITHUB_TOKEN }}
32+
config-file: release-please-config.json
33+
manifest-file: .release-please-manifest.json
34+
35+
- name: Release Please Outputs
36+
run: echo "${{ toJson(steps.release.outputs) }}"

.github/workflows/ci.yaml

+7
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,13 @@ jobs:
99
# Deduplicate jobs from pull requests and branch pushes within the same repo.
1010
if: github.event_name != 'pull_request' || github.event.pull_request.head.repo.full_name != github.repository
1111
uses: ./.github/workflows/_lint_commits.yaml
12+
13+
release_please:
14+
if: github.event_name == 'push' && github.ref == 'main'
15+
uses: ./.github/workflows/_release_please.yaml
16+
permissions:
17+
contents: write
18+
pull-requests: write
1219

1320
helm_lint:
1421
# Deduplicate jobs from pull requests and branch pushes within the same repo.

0 commit comments

Comments
 (0)