Skip to content

Commit

Permalink
fix slockit -> blockchains github naming
Browse files Browse the repository at this point in the history
  • Loading branch information
simon-jentzsch committed Feb 27, 2021
1 parent 0c5b3eb commit 27a803c
Showing 1 changed file with 11 additions and 11 deletions.
22 changes: 11 additions & 11 deletions c/ci-deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ readthedocs:
- cp ../../in3_wasm/index.d.ts .
- npm --cache .npm i typedoc
- node_modules/.bin/typedoc --includeDeclarations --ignoreCompilerErrors --readme none --target ES6 --mode 'modules' --excludeExternals --json doc.json index.d.ts
- cat doc.json | ../../generator/bin/slockit-docu index.d slockit/in3-c/blob/master/wasm/src "$PRE_DOC" > ../../doc/docs/api-wasm.md
- cat doc.json | ../../generator/bin/slockit-docu index.d blockchainsllc/in3/blob/master/wasm/src "$PRE_DOC" > ../../doc/docs/api-wasm.md
- cd ../../doc/docs && make html && make latexpdf && make text
artifacts:
paths:
Expand Down Expand Up @@ -104,12 +104,12 @@ release_mac_and_wasm:
- tar -zcv --exclude=*cmake* -f in3_${CI_COMMIT_TAG}_mac.tar.gz in3-mac-wasm/
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_mac.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_mac.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_mac.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_mac.tar.gz
- tar -zcv --exclude=in3-mac-wasm/python --exclude=in3-mac-wasm/java --exclude=in3-mac-wasm/bin --exclude=in3-mac-wasm/lib --exclude=*cmake* -f in3_${CI_COMMIT_TAG}_wasm.tar.gz in3-mac-wasm/
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_wasm.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_wasm.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- echo "Mac release:" $IPFS_HASH >> in3-mac-wasm/mac_release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_wasm.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_wasm.tar.gz
- cd in3-mac-wasm
artifacts:
paths:
Expand Down Expand Up @@ -143,7 +143,7 @@ release_x64:
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_x64.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_mac.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- echo "x64 release:" $IPFS_HASH >> in3-x64/x64_release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_x64.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_x64.tar.gz
- cd in3-x64
artifacts:
paths:
Expand Down Expand Up @@ -178,7 +178,7 @@ release_x86:
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_x86.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_x86.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- echo "x86 release:" $IPFS_HASH >> in3-x86/x86_release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_x86.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_x86.tar.gz
- cd in3-x86
artifacts:
paths:
Expand Down Expand Up @@ -213,7 +213,7 @@ release_arm7:
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_arm7.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_arm7.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- echo "arm7 release:" $IPFS_HASH >> in3-arm7/arm7_release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_arm7.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_arm7.tar.gz
- cd in3-arm7
artifacts:
paths:
Expand Down Expand Up @@ -252,7 +252,7 @@ release_win:
- IPFS_RESPONSE=$(curl -X POST https://api.pinata.cloud/pinning/pinFileToIPFS -H 'Content-Type:multipart/form-data' -H 'pinata_api_key:'"$PINATA_API_KEY" -H 'pinata_secret_api_key:'"$PINATA_SECRET_API_KEY" -F file=@in3_${CI_COMMIT_TAG}_windows.tar.gz -F 'pinataMetadata={"name":"in3_'${CI_COMMIT_TAG}'_windows.tar.gz","keyValues":{"version":"${CI_COMMIT_TAG}"}}' -F 'pinataOptions={"cidVersion":0}')
- "IPFS_HASH=$(echo $IPFS_RESPONSE | sed -e 's/[{}]/''/g' | awk -v RS=',' -F: '/IpfsHash/ {print $2}')"
- echo "windows release:" $IPFS_HASH >> in3-win/win_release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_windows.tar.gz
- ghr -u blockchainsllc -r in3 $CI_COMMIT_TAG in3_${CI_COMMIT_TAG}_windows.tar.gz
- cd in3-win
artifacts:
paths:
Expand Down Expand Up @@ -408,10 +408,10 @@ brew_release:
- git config --global user.name "${GITHUB_USER_NAME}"
- git config --global user.email "${GITHUB_USER_EMAIL}"
script:
- git clone https://github.com/slockit/homebrew-in3.git
- git clone https://github.com/blockchainsllc/homebrew-in3.git
- cd homebrew-in3
- sed '4s/.*/url "https:\/\/github.com\/slockit\/in3-c\/releases\/download\/'"${CI_COMMIT_TAG}"'\/in3_'"${CI_COMMIT_TAG}"'_mac.tar.gz"/' in3.rb > in3.rb.tmp && mv in3.rb.tmp in3.rb
- curl -jksSL -o /tmp/mac.tar.gz https://github.com/slockit/in3-c/releases/download/${CI_COMMIT_TAG}/in3_${CI_COMMIT_TAG}_mac.tar.gz
- sed '4s/.*/url "https:\/\/github.com\/blockchainsllc\/in3\/releases\/download\/'"${CI_COMMIT_TAG}"'\/in3_'"${CI_COMMIT_TAG}"'_mac.tar.gz"/' in3.rb > in3.rb.tmp && mv in3.rb.tmp in3.rb
- curl -jksSL -o /tmp/mac.tar.gz https://github.com/blockchainsllc/in3/releases/download/${CI_COMMIT_TAG}/in3_${CI_COMMIT_TAG}_mac.tar.gz
- export sha256_hash=$(sha256sum /tmp/mac.tar.gz | awk '{ print $1 }')
- sed -e '5s/.*/sha256 '"\"$sha256_hash"\"'/' in3.rb > in3.rb.tmp && mv in3.rb.tmp in3.rb
- git add in3.rb
Expand All @@ -436,4 +436,4 @@ github_body_release:
- cat in3-x86/x86_release_ipfs_hash.txt >> release_ipfs_hash.txt
- cat in3-arm7/arm7_release_ipfs_hash.txt >> release_ipfs_hash.txt
- cat in3-win/win_release_ipfs_hash.txt >> release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3-c -b "$(cat release_ipfs_hash.txt)" $CI_COMMIT_TAG release_ipfs_hash.txt
- ghr -u blockchainsllc -r in3 -b "$(cat release_ipfs_hash.txt)" $CI_COMMIT_TAG release_ipfs_hash.txt

0 comments on commit 27a803c

Please sign in to comment.