[r3-corda] Updated for latest bevel charts (#91) #6
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
############################################################################################## | |
# Copyright Accenture. All Rights Reserved. | |
# | |
# SPDX-License-Identifier: Apache-2.0 | |
############################################################################################## | |
# Build corda os docker images triggered by : | |
# - push on main branch for latest tags | |
# - create tag vx.y.z for release tags | |
# - Can be triggered manually | |
name: Build CorDapps jar | |
on: | |
workflow_dispatch: | |
inputs: | |
corda_version: | |
default: '4.7' | |
push: | |
branches: | |
- main | |
paths: | |
- '.github/workflows/jar_cordapps.yml' | |
- 'examples/supplychain-app/corda/cordApps_springBoot/**' | |
jobs: | |
# on push to main branch, create docker tags latest | |
publish: | |
runs-on: ubuntu-latest | |
permissions: | |
contents: read | |
packages: write | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v3 | |
- uses: actions/setup-java@v3 | |
with: | |
distribution: 'adopt' | |
java-version: '8' | |
- name: Publish to Github Packages | |
run: | | |
WDIR=`pwd` | |
cd ${WDIR}/examples/supplychain-app/corda/cordApps_springBoot | |
./gradlew clean | |
./gradlew test | |
./gradlew build | |
./gradlew publish --stacktrace | |
env: | |
REPO_PASSWORD: ${{ secrets.GITHUB_TOKEN }} | |
REPO_USERNAME: ${{ github.actor }} | |
REPO_URL: https://maven.pkg.github.com/${{ github.repository }} |