-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #163 from VirtusLab/publish-to-bintray
Automate releses of artifacts
- Loading branch information
Showing
15 changed files
with
162 additions
and
119 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,43 @@ | ||
name: Gradle Package | ||
|
||
on: | ||
release: | ||
types: [created] | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- name: Checkout Inkuire | ||
uses: actions/checkout@v2 | ||
with: | ||
path: inkuire | ||
|
||
- name: Set up JDK 11 | ||
uses: actions/setup-java@v1 | ||
with: | ||
java-version: 11 | ||
|
||
- name: Build with sbt | ||
run: sbt test | ||
|
||
- name: Compile Inkuire to JavaScript | ||
run: sbt engineJS/fastOptJS | ||
working-directory: ./inkuire | ||
|
||
- name: Build with Gradle | ||
run: gradle build | ||
|
||
- name: Upload to Bintray Gradle artifacts | ||
run: gradle bintrayUpload | ||
env: | ||
ORG_GRADLE_PROJECT_bintrayUser: ${{ secrets.BINTRAY_USER }} | ||
ORG_GRADLE_PROJECT_bintrayKey: ${{ secrets.BINTRAY_PASS }} | ||
|
||
- name: Upload to Bintray sbt artifacts | ||
run: sbt publish | ||
env: | ||
ORG_GRADLE_PROJECT_bintrayUser: ${{ secrets.BINTRAY_USER }} | ||
ORG_GRADLE_PROJECT_bintrayKey: ${{ secrets.BINTRAY_PASS }} |
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 |
---|---|---|
|
@@ -19,6 +19,20 @@ jobs: | |
with: | ||
java-version: 11 | ||
|
||
- name: Read dokka_version | ||
id: dokka_version | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './inkuire/gradle.properties' | ||
property: 'dokkaVersion' | ||
|
||
- name: Read inkuire_version | ||
id: inkuire_version | ||
uses: christian-draeger/[email protected] | ||
with: | ||
path: './inkuire/global.properties' | ||
property: 'version' | ||
|
||
- name: Compile Inkuire to JavaScript | ||
run: sbt engineJS/fullOptJS | ||
working-directory: ./inkuire | ||
|
@@ -35,7 +49,7 @@ jobs: | |
path: stdlib | ||
|
||
- name: Create database from stdlib | ||
run: ./gradlew clean extractAll cleanupSources dokkaStdlib --stacktrace | ||
run: ./gradlew clean extractAll cleanupSources dokkaStdlib --stacktrace -Pdokka_version=${{ steps.dokka_version.outputs.value }} -Pinkuire_version=${{ steps.inkuire_version.outputs.value }} | ||
working-directory: ./stdlib | ||
|
||
- name: Configure AWS credentials for S3 access | ||
|
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
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
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
Oops, something went wrong.