forked from open-telemetry/opentelemetry-java
-
Notifications
You must be signed in to change notification settings - Fork 0
57 lines (49 loc) · 1.67 KB
/
Copy pathbuild-daily.yml
File metadata and controls
57 lines (49 loc) · 1.67 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
49
50
51
52
53
54
55
56
57
name: Build (daily)
on:
schedule:
# daily at 3:24 UTC
- cron: "24 3 * * *"
workflow_dispatch:
permissions:
contents: read
jobs:
link-check:
if: github.repository == 'open-telemetry/opentelemetry-java'
uses: ./.github/workflows/reusable-link-check.yml
publish-snapshots:
if: github.repository == 'open-telemetry/opentelemetry-java'
environment: protected
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
- name: Set up Java
uses: actions/setup-java@ad2b38190b15e4d6bdf0c97fb4fca8412226d287 # v5.3.0
with:
distribution: temurin
java-version: 21
- name: Set up gradle
uses: gradle/actions/setup-gradle@3f131e8634966bd73d06cc69884922b02e6faf92 # v6.2.0
- name: Publish to Sonatype
run: ./gradlew assemble publishToSonatype
env:
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }}
# disable gradle build cache, ensuring we're building from source to mitigate supply chain risk
DISABLE_REMOTE_BUILD_CACHE: true
workflow-notification:
permissions:
contents: read
issues: write
needs:
- link-check
- publish-snapshots
if: always() && github.repository == 'open-telemetry/opentelemetry-java'
uses: ./.github/workflows/reusable-workflow-notification.yml
with:
success: >-
${{
needs.link-check.result == 'success' &&
needs.publish-snapshots.result == 'success'
}}