Skip to content

Disable integration tests wf (WIP) #1

Disable integration tests wf (WIP)

Disable integration tests wf (WIP) #1

Workflow file for this run

name: babylonchain/babylon-contract/deploy
on:
push:
tags: [ "^v[0-9]+\.[0-9]+\.[0-9]+.*"]

Check failure on line 4 in .github/workflows/deploy.yml

View workflow run for this annotation

GitHub Actions / .github/workflows/deploy.yml

Invalid workflow file

You have an error in your yaml syntax on line 4
env:
AWS_ACCESS_KEY_ID: xxxxYKF5
AWS_REGION: xxxxst-1
AWS_SECRET_ACCESS_KEY: xxxxmvcn
DEPLOY_KEY_NAME: xxxxc068
GITHUB_TOKEN: xxxxFyIu
S3_BUCKET_PREFIX: xxxxract
jobs:
build_and_upload_contracts:
defaults:
run:
working-directory: "/home/circleci/project"
runs-on: ubuntu-latest
container:
image: rust:1.78.0
steps:
- uses: actions/[email protected]
with:
path: "/home/circleci/project"
# # 'setup_remote_docker' was not transformed because there is no suitable equivalent in GitHub Actions
- name: Make temporary bin
run: mkdir -p /tmp/bin
- name: Install ghr
run: wget https://github.com/tcnksm/ghr/releases/download/v0.14.0/ghr_v0.14.0_linux_amd64.tar.gz -O - | tar -zxvf - -C /tmp/bin --wildcards --strip-components 1 */ghr
- name: Build optimised Wasm binaries
run: "./scripts/build-optimizer-ci.sh"
- uses: actions/[email protected]
with:
path: |-
/home/circleci/project/artifacts/babylon_contract.wasm
/home/circleci/project/artifacts/btc_staking.wasm
/home/circleci/project/artifacts/checksums.txt
- name: Show data
run: |-
ls -l artifacts
cat artifacts/checksums.txt
- name: Publish artifacts on GitHub
run: |-
TAG="${{ github.ref }}"
TITLE="$TAG"
BODY="Attached there are some build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release."
/tmp/bin/ghr -t "$GITHUB_TOKEN" \
-u "$CIRCLE_PROJECT_USERNAME" -r "${{ github.repository }}" \
-c "${{ github.sha }}" \
-n "$TITLE" -b "$BODY" \
-replace \
"$TAG" ./artifacts/
build_and_upload_schemas:
defaults:
run:
working-directory: "/home/circleci/project"
runs-on: ubuntu-latest
container:
image: rust:1.78.0
steps:
- uses: actions/[email protected]
with:
path: "/home/circleci/project"
- name: Make temporary bin
run: mkdir -p /tmp/bin
- name: Install ghr
run: wget https://github.com/tcnksm/ghr/releases/download/v0.14.0/ghr_v0.14.0_linux_amd64.tar.gz -O - | tar -zxvf - -C /tmp/bin --wildcards --strip-components 1 */ghr
- name: Build and run schema generator
run: |-
(cd ./contracts/babylon && cargo run --bin schema)
(cd ./contracts/btc-staking && cargo run --bin btcstaking-schema)
- name: Consolidate schemas
run: |-
mkdir -p ./schemas
cp -a ./contracts/*/schema/* ./schemas
- name: Show data
run: ls -l ./schemas
- name: Publish schemas on GitHub
run: |-
TAG="${{ github.ref }}"
TITLE="$TAG"
BODY="Attached there are some schemas and build artifacts generated at this tag. Those are for development purposes only! Please use crates.io to find the packages of this release."
/tmp/bin/ghr -t "$GITHUB_TOKEN" \
-u "$CIRCLE_PROJECT_USERNAME" -r "${{ github.repository }}" \
-c "${{ github.sha }}" \
-n "$TITLE" -b "$BODY" \
-replace \
"$TAG" ./schemas/