Skip to content

ci: debug logging

ci: debug logging #15

Workflow file for this run

name: Build and release
on:
push:
branches:
- master
- ci/app-wasm-release
jobs:
metadata:
name: Build and release
runs-on: ubuntu-latest
env:
NEAR_NETWORK: testnet
NEAR_CREDENTIALS_JSON: ${{ secrets.NEAR_TESTNET_CREDENTIALS_JSON }}
steps:
- name: Checkout code
uses: actions/checkout@v4
- name: Build application
run: |
./logic/build.sh
- name: Get application metadata
id: get_app_metadata
run: |
echo "name=$(cargo read-manifest --manifest-path logic/Cargo.toml | jq -r '.name')" >> $GITHUB_OUTPUT
echo "description=$(cargo read-manifest --manifest-path logic/Cargo.toml | jq -r '.description')" >> $GITHUB_OUTPUT
echo "version=$(cargo read-manifest --manifest-path logic/Cargo.toml | jq -r '.version')" >> $GITHUB_OUTPUT
# - name: Setup near credentials
# run: |
# echo $HOME
# mkdir -p "~/.near-credentials/$NEAR_NETWORK"
# echo "bola" > "~/.near-credentials/$NEAR_NETWORK/test.txt"
# ls -al "~/.near-credentials/$NEAR_NETWORK"
# cat "~/.near-credentials/$NEAR_NETWORK/test.txt"
# echo "$NEAR_CREDENTIALS_JSON" > "~/.near-credentials/$NEAR_NETWORK/account.json"
# ls -al "~/.near-credentials/$NEAR_NETWORK"
# cat "~/.near-credentials/$NEAR_NETWORK/account.json"
- name: Install near CLI
run: |
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/near/near-cli-rs/releases/download/v0.15.1/near-cli-rs-installer.sh | sh
- name: Release application
run: |
mkdir -p "~/.near-credentials/$NEAR_NETWORK"
echo "$NEAR_CREDENTIALS_JSON" > "~/.near-credentials/$NEAR_NETWORK/calimero-package-manager.testnet.json"
./logic/release.sh \
./logic/res/logic.wasm \
'${{ steps.get_app_metadata.outputs.name }}' \
'${{ steps.get_app_metadata.outputs.version }}' \
'${{ steps.get_app_metadata.outputs.description }}' \
"-" \
"-" \
"calimero-package-manager.$NEAR_NETWORK"