-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Integrate with GitHub actions workflow and maven fix for compilation (#…
…19) Inetgrating with github action workflow. maven changes to link to correct url. Also add the download and build status tag
- Loading branch information
Showing
9 changed files
with
212 additions
and
5 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,25 @@ | ||
name: pull request build workflow | ||
|
||
on: | ||
pull_request | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
ref: ${{ github.event.pull_request.head.sha }} | ||
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build with Gradle | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
# add --info or --debug below for more details when trying to understand issues | ||
run: ./gradlew clean build --stacktrace --no-daemon |
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,26 @@ | ||
name: push to master request build workflow | ||
# This should be a merge from another branch not direct push | ||
|
||
on: | ||
push: | ||
branches: [ master ] | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build with Gradle | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
# add --info or --debug below for more details when trying to understand issues | ||
run: ./gradlew clean build --stacktrace --no-daemon |
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,40 @@ | ||
name: release a new tag build workflow | ||
|
||
on: | ||
create: | ||
tags: | ||
- '*' | ||
|
||
jobs: | ||
|
||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v2 | ||
with: | ||
# bring in all history because the gradle versions plugin needs to "walk back" to the closest ancestor tag | ||
fetch-depth: 0 | ||
- name: Set up JDK 1.8 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 1.8 | ||
- name: Build with Gradle | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
# add --info or --debug below for more details when trying to understand issues | ||
run: ./gradlew clean build --stacktrace --no-daemon | ||
|
||
- name: Branch tag | ||
id: branch_tag | ||
run: echo ::set-output name=RELEASE_TAG::${GITHUB_REF#refs/tags/} | ||
- name: Publish to Bintray | ||
env: | ||
BINTRAY_USER: ${{ secrets.BINTRAY_USER }} | ||
BINTRAY_KEY: ${{ secrets.BINTRAY_KEY }} | ||
SOURCE_TAG: ${{ steps.branch_tag.outputs.RELEASE_TAG }} | ||
run: | | ||
chmod +x ./scripts/publishToBintray.sh | ||
./scripts/publishToBintray.sh | ||
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,6 +1,6 @@ | ||
group=io.tehuti | ||
archivesBaseName=tehuti | ||
version=0.7.6 | ||
version=0.8.7 | ||
|
||
signing.enabled=false | ||
signing.keyId= | ||
|
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 |
---|---|---|
@@ -0,0 +1,22 @@ | ||
#!/usr/bin/env bash | ||
|
||
result=${PWD##*/} | ||
if [[ "$result" = "scripts" ]] | ||
then | ||
echo "script must be run from root project folder, not $PWD" | ||
exit 1 | ||
else | ||
echo "we are in $PWD and tag is $SOURCE_TAG" | ||
|
||
if [[ $SOURCE_TAG =~ ^[0-9]+\.[0-9]+\.[0-9]+$ ]] | ||
then | ||
echo "tag $SOURCE_TAG looks like a semver so proceeding with bintray publish" | ||
git status | ||
git describe --tags | ||
#enable below to test the bintrayUpload process, it wouldn't do the actual uploading | ||
#./gradlew bintrayUpload -Pbintray.dryRun --info | ||
./gradlew bintrayUpload --info | ||
else | ||
echo "tag $SOURCE_TAG is NOT a valid semantic version (x.y.z) so not publishing to bintray" | ||
fi | ||
fi |
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 @@ | ||
rootProject.name = 'tehuti' |