1+ name : Deploy Corda Packages
2+
3+ on :
4+ push :
5+ branches :
6+ - main
7+ paths :
8+ - ' common/protos-java-kt/gradle.properties'
9+ - ' core/network/corda-interop-app/gradle.properties'
10+ - ' sdks/corda/gradle.properties'
11+ - ' core/drivers/corda-driver/makefile.variables.docker'
12+
13+ # Allows you to run this workflow manually from the Actions tab
14+ workflow_dispatch :
15+
16+ jobs :
17+ publish-protos :
18+ runs-on : ubuntu-latest
19+ steps :
20+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
21+ - uses : actions/checkout@v2
22+
23+ - name : Set up JDK 8
24+ uses : actions/setup-java@v2
25+ with :
26+ java-version : ' 8'
27+ distribution : ' adopt'
28+
29+ - name : Generate github.properties
30+ run : |
31+ echo "Using ${GITHUB_ACTOR} user."
32+ echo "username=${GITHUB_ACTOR}" >> github.properties
33+ echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.properties
34+ echo "url=https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/weaver-dlt-interoperability" >> github.properties
35+ cat github.properties
36+ working-directory : common/protos-java-kt
37+
38+ - name : Build
39+ run : make build
40+ working-directory : common/protos-java-kt
41+
42+ - name : Publish
43+ run : make publish
44+ working-directory : common/protos-java-kt
45+
46+
47+ publish-interop-app :
48+ needs : publish-protos
49+ runs-on : ubuntu-latest
50+ steps :
51+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
52+ - uses : actions/checkout@v2
53+
54+ - name : Set up JDK 8
55+ uses : actions/setup-java@v2
56+ with :
57+ java-version : ' 8'
58+ distribution : ' adopt'
59+
60+ - name : Generate github.properties
61+ run : |
62+ echo "Using ${GITHUB_ACTOR} user."
63+ echo "username=${GITHUB_ACTOR}" >> github.properties
64+ echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.properties
65+ echo "url=https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/weaver-dlt-interoperability" >> github.properties
66+ cat github.properties
67+ working-directory : core/network/corda-interop-app
68+
69+ - name : Build
70+ run : make build
71+ working-directory : core/network/corda-interop-app
72+
73+ - name : Publish
74+ run : make publish
75+ working-directory : core/network/corda-interop-app
76+
77+ publish-sdk :
78+ needs : [publish-protos, publish-interop-app]
79+ runs-on : ubuntu-latest
80+ steps :
81+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
82+ - uses : actions/checkout@v2
83+
84+ - name : Set up JDK 8
85+ uses : actions/setup-java@v2
86+ with :
87+ java-version : ' 8'
88+ distribution : ' adopt'
89+
90+ - name : Generate github.properties
91+ run : |
92+ echo "Using ${GITHUB_ACTOR} user."
93+ echo "username=${GITHUB_ACTOR}" >> github.properties
94+ echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.properties
95+ echo "url=https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/weaver-dlt-interoperability" >> github.properties
96+ cat github.properties
97+ working-directory : sdks/corda
98+
99+ - name : Build
100+ run : make build
101+ working-directory : sdks/corda
102+
103+ - name : Publish
104+ run : make publish
105+ working-directory : sdks/corda
106+
107+ publish-driver :
108+ needs : [publish-protos, publish-interop-app]
109+ runs-on : ubuntu-latest
110+ steps :
111+ # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
112+ - uses : actions/checkout@v2
113+
114+ - name : Login to GitHub Container Registry
115+ uses : docker/login-action@v1
116+ with :
117+ registry : ghcr.io
118+ username : ${{ github.actor }}
119+ password : ${{ secrets.GITHUB_TOKEN }}
120+
121+ - name : Generate github.properties
122+ run : |
123+ echo "Using ${GITHUB_ACTOR} user."
124+ echo "username=${GITHUB_ACTOR}" >> github.properties
125+ echo "password=${{ secrets.GITHUB_TOKEN }}" >> github.properties
126+ echo "url=https://maven.pkg.github.com/${GITHUB_REPOSITORY_OWNER}/weaver-dlt-interoperability" >> github.properties
127+ cat github.properties
128+ working-directory : core/drivers/corda-driver
129+
130+ - name : Build and Push
131+ run : make push-image
132+ working-directory : core/drivers/corda-driver
133+
134+
0 commit comments