-
Notifications
You must be signed in to change notification settings - Fork 0
51 lines (48 loc) · 1.32 KB
/
publish.yml
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
49
50
51
name: Publish
on:
push:
tags:
- '*'
permissions:
contents: write
jobs:
publish:
name: Publish otel extension
runs-on: ubuntu-latest
timeout-minutes: 30
steps:
- uses: actions/checkout@v4
- name: Set up JDK
uses: actions/setup-java@v4
with:
java-version: '21'
distribution: 'corretto'
cache: 'gradle'
- name: Build jar
run: ./gradlew --no-daemon shadowJar
- name: Build jar
run: ls -a
- name: Upload binaries to release
uses: svenstaro/upload-release-action@v2
with:
repo_token: ${{ secrets.GITHUB_TOKEN }}
file: build/libs/otel-extension.jar
asset_name: otel-extension
tag: ${{ github.ref }}
overwrite: true
create-change-log:
needs: publish
name: Create and publish change log
runs-on: ubuntu-latest
timeout-minutes: 5
steps:
- name: Run changelog cli action
uses: monta-app/changelog-cli-action@main
with:
service-name: "Open Telemetry Extension"
github-release: true
github-token: ${{ secrets.GITHUB_TOKEN }}
jira-app-name: "montaapp"
output: "slack"
slack-token: ${{ secrets.SLACK_APP_TOKEN }}
slack-channel: "#releases,#backend-observability"