-
Notifications
You must be signed in to change notification settings - Fork 1
50 lines (46 loc) · 1.48 KB
/
publish.yml
File metadata and controls
50 lines (46 loc) · 1.48 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
36
37
38
39
40
41
42
43
44
45
46
47
48
name: Publish artifacts
on:
# Will only run when release is published.
release:
types:
- created
jobs:
publish-artifacts:
runs-on: ubuntu-24.04
steps:
# Set fetch-depth: 0 to fetch commit history and tags for use in version calculation
- name: Check out code
uses: actions/checkout@v4
with:
fetch-depth: 0
- name: publish java artifacts
uses: hypertrace/github-actions/gradle@main
with:
args: publish
env:
ORG_GRADLE_PROJECT_maven_repo_url: ${{ secrets.HAR_REPO_URL }}
ORG_GRADLE_PROJECT_maven_user: ${{ secrets.HAR_PUBLISH_USER }}
ORG_GRADLE_PROJECT_maven_password: ${{ secrets.HAR_PUBLISH_TOKEN }}
post-publish-artifacts:
runs-on: ubuntu-24.04
needs: [ publish-artifacts ]
steps:
- name: Get Token from Github App
uses: tibdex/github-app-token@v2
id: generate-token
with:
app_id: ${{ secrets.GH_CI_APP_ID }}
private_key: ${{ secrets.GH_CI_APP_PRIVATE_KEY }}
repositories: >-
["hypertrace-bom"]
- name: Auto upgrade BOM
uses: peter-evans/repository-dispatch@v3
with:
token: ${{ steps.generate-token.outputs.token }}
repository: hypertrace/hypertrace-bom
event-type: upgrade-version
client-payload: |
{
"repository": "${{ github.repository }}",
"version": "${{ github.ref_name }}"
}