2022-04-06 09:01:41 +00:00
|
|
|
name: Gradle Package
|
|
|
|
|
|
|
|
on:
|
|
|
|
release:
|
|
|
|
types: [created]
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
permissions:
|
|
|
|
contents: read
|
|
|
|
|
|
|
|
steps:
|
2022-04-11 23:13:00 +00:00
|
|
|
- name: Check out the repository and all submodules
|
|
|
|
uses: actions/checkout@v2
|
|
|
|
with:
|
|
|
|
submodules: recursive
|
2022-04-06 09:01:41 +00:00
|
|
|
|
|
|
|
- name: Set up JDK 17
|
|
|
|
uses: actions/setup-java@v2
|
|
|
|
with:
|
|
|
|
java-version: '17'
|
|
|
|
distribution: 'temurin'
|
|
|
|
server-id: github
|
|
|
|
settings-path: ${{ github.workspace }}
|
|
|
|
|
|
|
|
- name: Set up Gradle
|
|
|
|
uses: gradle/gradle-build-action@v2
|
|
|
|
|
2022-04-06 16:52:36 +00:00
|
|
|
- name: Build and publish to Vega
|
2022-04-06 09:01:41 +00:00
|
|
|
run: |
|
|
|
|
chmod +x ./gradlew
|
2022-04-06 16:52:36 +00:00
|
|
|
./gradlew :plutoengine:publish --stacktrace --info -x test
|
|
|
|
./gradlew :plutoengine-ext:publish --stacktrace --info -x test
|
2022-04-06 09:01:41 +00:00
|
|
|
env:
|
|
|
|
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.GPG_PRIVATE_KEY }}
|
|
|
|
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.GPG_PASSWORD }}
|
|
|
|
ORG_GRADLE_PROJECT_vegaUsername: ${{ secrets.VEGA_USERNAME }}
|
|
|
|
ORG_GRADLE_PROJECT_vegaPassword: ${{ secrets.VEGA_PASSWORD }}
|