Skip to content

Commit b3d2d27

Browse files
authored
Run build in workflows (#141)
1 parent 2ef3ce7 commit b3d2d27

File tree

2 files changed

+9
-3
lines changed

2 files changed

+9
-3
lines changed

.github/workflows/build.yml

Lines changed: 6 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ permissions:
1010
contents: read
1111

1212
jobs:
13-
publish-snapshots:
13+
build-and-publish-snapshots:
1414
runs-on: ubuntu-latest
1515
# skipping release branches because the versions in those branches are not snapshots
1616
if: github.ref_name == 'main' && github.repository == 'open-telemetry/opentelemetry-proto-java'
@@ -26,8 +26,11 @@ jobs:
2626
- name: Set up gradle
2727
uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
2828

29-
- name: Build and publish snapshots
30-
run: ./gradlew assemble publishToSonatype
29+
- name: Build
30+
run: ./gradlew build
31+
32+
- name: Publish snapshots
33+
run: ./gradlew publishToSonatype
3134
env:
3235
SONATYPE_USER: ${{ secrets.SONATYPE_USER }}
3336
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }}

.github/workflows/release.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ jobs:
2828

2929
- uses: gradle/actions/setup-gradle@4d9f0ba0025fe599b4ebab900eb7f3a1d93ef4c2 # v5.0.0
3030

31+
- name: Build
32+
run: ./gradlew build
33+
3134
- name: Build and publish artifacts
3235
run: ./gradlew assemble publishToSonatype closeAndReleaseSonatypeStagingRepository
3336
env:

0 commit comments

Comments
 (0)