-
Notifications
You must be signed in to change notification settings - Fork 40
54 lines (47 loc) · 1.42 KB
/
jar_cordapps.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
##############################################################################################
# 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 }}