diff --git a/.github/workflows/chaincode-release.yml b/.github/workflows/chaincode-release.yml index 86c0f45..977c010 100644 --- a/.github/workflows/chaincode-release.yml +++ b/.github/workflows/chaincode-release.yml @@ -3,7 +3,7 @@ name: Build Chaincode and Release Package on: push: branches: - - master + - blocc jobs: release: @@ -13,34 +13,34 @@ jobs: contents: write steps: - - name: Checkout Code - uses: actions/checkout@v3 - - - name: Set up JDK 11 - uses: actions/setup-java@v3 - with: - java-version: '11' - distribution: 'temurin' - - - name: Build Chaincode with Gradle - run: ./gradlew installDist - - - name: Install Hyperledger Fabric dependencies - run: | - curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh - ./install-fabric.sh binary - - - name: Package Chaincode - run: ./bin/peer lifecycle chaincode package ${CC_NAME}.tar.gz --path ./build/install/${CC_NAME} --lang java --label ${CC_NAME} - env: - FABRIC_CFG_PATH: ./config - CC_NAME: blocc-temp-humidity-reading - - - name: Create Release - uses: ncipollo/release-action@v1 - with: - artifacts: blocc-temp-humidity-reading.tar.gz - commit: master - name: Packaged chaincode - allowUpdates: true - tag: packaged + - name: Checkout Code + uses: actions/checkout@v3 + + - name: Set up JDK 11 + uses: actions/setup-java@v3 + with: + java-version: '11' + distribution: 'temurin' + + - name: Build Chaincode with Gradle + run: ./gradlew installDist + + - name: Install Hyperledger Fabric dependencies + run: | + curl -sSLO https://raw.githubusercontent.com/hyperledger/fabric/main/scripts/install-fabric.sh && chmod +x install-fabric.sh + ./install-fabric.sh binary + + - name: Package Chaincode + run: ./bin/peer lifecycle chaincode package ${CC_NAME}.tar.gz --path ./build/install/blocc-temp-humidity-reading --lang java --label ${CC_NAME} + env: + FABRIC_CFG_PATH: ./config + CC_NAME: sensory_chaincode + + - name: Create Release + uses: ncipollo/release-action@v1 + with: + artifacts: sensory_chaincode.tar.gz + commit: blocc + name: Packaged BLOCC test chaincode + allowUpdates: true + tag: blocc-test