forked from prometheus/client_java
-
Notifications
You must be signed in to change notification settings - Fork 0
35 lines (31 loc) · 1.2 KB
/
Copy pathrelease-please.yml
File metadata and controls
35 lines (31 loc) · 1.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
---
name: Release Please
on:
push:
branches:
- main
permissions: {}
jobs:
release-please:
if: ${{ github.repository == 'prometheus/client_java' }}
runs-on: ubuntu-24.04
permissions:
contents: write # release-please creates release commits, tags, and the GitHub release
pull-requests: write # release-please opens/updates the release PR
issues: write # release-please comments on/labels issues included in the release
actions: write # required to trigger release.yml via `gh workflow run`
steps:
- uses: googleapis/release-please-action@45996ed1f6d02564a971a2fa1b5860e934307cf7 # v5.0
id: release-please
with:
token: ${{ secrets.GITHUB_TOKEN }}
config-file: .github/config/release-please-config.json
manifest-file: .github/config/.release-please-manifest.json
- name: Trigger deploy to Maven Central
if: ${{ steps.release-please.outputs.releases_created == 'true' }}
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
TAG_NAME: ${{ steps.release-please.outputs.tag_name }}
run: >
gh workflow run release.yml --repo "${GITHUB_REPOSITORY}"
-f "tag=${TAG_NAME}"