-
Notifications
You must be signed in to change notification settings - Fork 12
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Anuraag Agrawal
committed
Oct 6, 2021
1 parent
2cec180
commit f08ae9c
Showing
7 changed files
with
140 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,38 @@ | ||
name: "Main Build" | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- id: setup-java-17 | ||
name: Setup Java 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
- uses: burrunan/[email protected] | ||
with: | ||
remote-build-cache-proxy-enabled: false | ||
arguments: build --stacktrace | ||
properties: | | ||
org.gradle.java.installations.paths=${{ steps.setup-java-17.outputs.path }} | ||
- uses: burrunan/[email protected] | ||
with: | ||
remote-build-cache-proxy-enabled: false | ||
arguments: snapshot --stacktrace | ||
properties: | | ||
org.gradle.java.installations.paths=${{ steps.setup-java-17.outputs.path }} | ||
env: | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
name: "PR Build" | ||
|
||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- id: setup-java-17 | ||
name: Setup Java 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
- uses: burrunan/[email protected] | ||
with: | ||
remote-build-cache-proxy-enabled: false | ||
arguments: build --stacktrace | ||
properties: | | ||
org.gradle.java.installations.paths=${{ steps.setup-java-17.outputs.path }} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,46 @@ | ||
name: "Release Build" | ||
|
||
on: | ||
workflow_dispatch: | ||
inputs: | ||
version: | ||
description: The version to tag the release with, e.g., 1.2.0, 1.2.1-alpha.1 | ||
required: true | ||
|
||
jobs: | ||
build: | ||
name: Build | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- id: setup-java-17 | ||
name: Setup Java 17 | ||
uses: actions/setup-java@v2 | ||
with: | ||
distribution: adopt | ||
java-version: 17 | ||
- uses: burrunan/[email protected] | ||
with: | ||
remote-build-cache-proxy-enabled: false | ||
arguments: build --stacktrace | ||
properties: | | ||
release.version=${{ github.event.inputs.version }} | ||
org.gradle.java.installations.paths=${{ steps.setup-java-17.outputs.path }} | ||
- uses: burrunan/[email protected] | ||
with: | ||
remote-build-cache-proxy-enabled: false | ||
arguments: final closeAndReleaseSonatypeStagingRepository --stacktrace | ||
properties: | | ||
release.version=${{ github.event.inputs.version }} | ||
org.gradle.java.installations.paths=${{ steps.setup-java-17.outputs.path }} | ||
env: | ||
SONATYPE_USER: ${{ secrets.SONATYPE_USER }} | ||
SONATYPE_KEY: ${{ secrets.SONATYPE_KEY }} | ||
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }} | ||
GPG_PASSWORD: ${{ secrets.GPG_PASSWORD }} | ||
- run: | | ||
gh release create ${{ github.events.inputs.version }} \ | ||
--title ${{ github.events.inputs.version }}-alpha \ | ||
--notes "Java Bindings for [OTLP ${{ github.events.inputs.version }}](https://github.com/open-telemetry/opentelemetry-proto/releases/tag/${{ github.events.inputs.version }})" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
version = 0.9.0-alpha | ||
|
||
org.gradle.parallel=true | ||
org.gradle.caching=true | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters