Skip to content

Commit

Permalink
ci(release): test blocc protocol with chaincode name: sensory_chaincode
Browse files Browse the repository at this point in the history
  • Loading branch information
TonyWu3027 committed Jul 27, 2023
1 parent 463e974 commit f8495b0
Showing 1 changed file with 32 additions and 32 deletions.
64 changes: 32 additions & 32 deletions .github/workflows/chaincode-release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ name: Build Chaincode and Release Package
on:
push:
branches:
- master
- blocc

jobs:
release:
Expand All @@ -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

0 comments on commit f8495b0

Please sign in to comment.