updated readme with branches links #78
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
name: Publish to Exchange & Deploy to CH2.0 | |
on: | |
push: | |
branches: [ cloudhub2 ] | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout this repo | |
uses: actions/checkout@v4 | |
- name: Cache dependencies | |
uses: actions/cache@v4 | |
with: | |
path: ~/.m2/repository | |
key: ${{ runner.os }}-maven-${{ hashFiles('**/pom.xml') }} | |
restore-keys: ${{ runner.os }}-maven- | |
- name: Set up JDK 1.8 | |
uses: actions/setup-java@v4 | |
with: | |
distribution: "zulu" | |
java-version: 8 | |
- name: Publish to Exchange | |
run: | | |
mvn deploy --settings .maven/settings.xml -DskipMunitTests \ | |
-Dclient.id="${{ secrets.CONNECTED_APP_CLIENT_ID }}" \ | |
-Dclient.secret="${{ secrets.CONNECTED_APP_CLIENT_SECRET }}" | |
- name: Deploy to CloudHub 2.0 | |
run: | | |
mvn deploy --settings .maven/settings.xml -DskipMunitTests -DmuleDeploy \ | |
-Dclient.id="${{ secrets.CONNECTED_APP_CLIENT_ID }}" \ | |
-Dclient.secret="${{ secrets.CONNECTED_APP_CLIENT_SECRET }}" \ | |
-Ddecryption.key="${{ secrets.DECRYPTION_KEY }}" |