diff --git a/.github/actions/build-binaries/action.yml b/.github/actions/build-binaries/action.yml deleted file mode 100644 index 5e76e8f42e..0000000000 --- a/.github/actions/build-binaries/action.yml +++ /dev/null @@ -1,53 +0,0 @@ -name: 'Build Binaries' -description: 'Builds ZetaChain Binaries' -inputs: - run-tests: - description: 'Run Build Tests (true/false)' - required: false - default: "false" - go-version: - description: 'Optional - Install a specific verion of Go' - required: false - default: '' - ENVIRONMENT_NAME: - description: 'Environment Name' - required: true - default: "STAGING" - -runs: - using: "composite" - steps: - - name: Set Up Go - # Optionally install a specific version of Go - # Only use if go has not been installed in a previous step of the calling workflow - if : ${{ inputs.go-version != '' }} - uses: actions/setup-go@v3 - with: - go-version: ${{ inputs.go-version }} - cache: true - cache-dependency-path: go.mod - - - name: build zetacored and zetaclientd - shell: bash - run: | - make install - cp "$HOME"/go/bin/* ./ - - - name: Run Build tests - if: ${{ inputs.run-tests == 'true' }} - shell: bash - run: | - echo "Running Build Tests" - make test - - - name: Cosmovisor - shell: bash - run: | - go get github.com/zeta-chain/cosmos-sdk/cosmovisor/cmd/cosmovisor@zetavisor-v0.1.2 - go install github.com/zeta-chain/cosmos-sdk/cosmovisor/cmd/cosmovisor@zetavisor-v0.1.2 - cp "$HOME"/go/bin/cosmovisor ./cosmovisor - - - run: echo "Completed Build Action" - shell: bash - - diff --git a/.github/actions/build-binaries/readme.md b/.github/actions/build-binaries/readme.md deleted file mode 100644 index b45e46479c..0000000000 --- a/.github/actions/build-binaries/readme.md +++ /dev/null @@ -1,11 +0,0 @@ -# Build ZetaChain Binaries - -## Example -``` - - name: Build Binaries - uses: ./.github/actions/build-binaries - with: - run-tests: ${{ env.GITHUB_REF_NAME != 'develop' }} - build-indexer: false - go-version: '1.20' -``` \ No newline at end of file diff --git a/.github/actions/build-zetavisor/action.yml b/.github/actions/build-zetavisor/action.yml deleted file mode 100644 index 26043336bc..0000000000 --- a/.github/actions/build-zetavisor/action.yml +++ /dev/null @@ -1,20 +0,0 @@ -name: 'BUILD:ZETAVISOR' -description: 'Builds Zetavisor' -inputs: - zetavisor_version: - description: "version to use: zetavisor-v0.1.3" - required: true - workspace_dir: - description: "workspace directory where to copy cosmovisor once built." - required: true -runs: - using: "composite" - steps: - - uses: actions/checkout@v3 - - - name: Build Zetavisor - shell: bash - run: | - go get github.com/zeta-chain/cosmos-sdk/cosmovisor/cmd/cosmovisor@${{ inputs.zetavisor_version }} - go install github.com/zeta-chain/cosmos-sdk/cosmovisor/cmd/cosmovisor@${{ inputs.zetavisor_version }} - cp "$HOME"/go/bin/cosmovisor ${{ inputs.workspace_dir }}/cosmovisor \ No newline at end of file diff --git a/.github/actions/cosmovisor-upgrade/action.yml b/.github/actions/cosmovisor-upgrade/action.yml deleted file mode 100644 index 2e7df4e76d..0000000000 --- a/.github/actions/cosmovisor-upgrade/action.yml +++ /dev/null @@ -1,125 +0,0 @@ -name: 'Create Cosmovisor Proposal' -description: 'Creates Cosmovisor Upgrade Proposal and Votes On All TestNet Valiators' -inputs: - UPGRADE_NAME: - description: 'Name of the upgrade (0.0.1)' - required: true - DESCRIPTION: - description: 'Description of the upgrade' - required: false - default: "Description" - ZETACORED_CHECKSUM: - description: 'Hash value of the zetacored binary' - required: true - ZETACORED_URL: - description: 'URL to download the zetacored binary' - required: false - default: "" - ZETACLIENTD_CHECKSUM: - description: 'Hash value of the zetaclientd binary' - required: true - ZETACLIENTD_URL: - description: 'URL to download the zetaclientd binary' - required: false - default: "" - CHAIN_ID: - description: 'Chain ID for the upgrade' - required: true - API_ENDPOINT: - description: 'Endpoint for the ZetaChain API' - required: false - default: "https://api.development.zetachain.com" - UPGRADE_BLOCK_HEIGHT: - description: 'What block height to upgrade at' - required: true - -runs: - using: "composite" - steps: - - - name: Set ENV Variables - shell: bash - run: | - echo Running Cosmovisor Upgrade Action - echo "API_ENDPOINT=${{ inputs.API_ENDPOINT }}" >> $GITHUB_ENV - echo "PATH=$PATH:$(pwd)" >> $GITHUB_ENV - - - name: Get Upgrade Height - shell: bash - run: | - UPGRADE_HEIGHT=${{ inputs.UPGRADE_BLOCK_HEIGHT }} - echo "UPGRADE_HEIGHT=$UPGRADE_HEIGHT" >> $GITHUB_ENV - echo "Proposed Upgrade Height: ${UPGRADE_HEIGHT}" - - - name: Check Inputs & Env Vars - Testing Only - shell: bash - if: ${{ env.ACT }} - run: | - echo "github.ref_name = ${{ github.ref_name }}" - echo "github.event.inputs.ENVIRONMENT = ${{ github.event.inputs.ENVIRONMENT }}" - echo "DESCRIPTION=${{ inputs.DESCRIPTION }}" - echo "ZETACORED_CHECKSUM=${{ env.ZETACORED_CHECKSUM }}" - echo "ZETACLIENTD_CHECKSUM=${{ env.ZETACLIENTD_CHECKSUM }}" - echo "CHAIN_ID=${{ env.CHAIN_ID }}" - echo "API_ENDPOINT=${{ inputs.API_ENDPOINT }}" - echo "ZETACORED_URL=${{ inputs.ZETACORED_URL }}" - echo "ZETACLIENTD_URL=${{ inputs.ZETACLIENTD_URL }}" - - - name: Prepare Validators # Temporary solution until we fix the "account sequence mismatch" GitHub Issue #359 - shell: bash - run: | - source ${{ github.action_path }}/functions - - COMMAND_ID=$(run_validators 'systemctl stop zetaclientd') - echo COMMAND_ID:$COMMAND_ID - check_cmd_status $COMMAND_ID - - COMMAND_ID=$(run_validators "systemctl restart cosmovisor") - check_cmd_status $COMMAND_ID - sleep 20 - - - name: Create & Submit Proposal - shell: bash - run: | - source ${{ github.action_path }}/functions - UPGRADE_INFO="{"binaries":{"linux/arm64":"${{ inputs.ZETACLIENTD_URL }}","linux/amd64":"${{ inputs.ZETACORED_URL }}"}}" - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Name,Values=validator0 \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=['export HOME=/home/zetachain && \ - zetacored tx gov submit-proposal software-upgrade ${{ inputs.UPGRADE_NAME }} \ - --from val \ - --deposit 10000000azeta \ - --upgrade-height ${{ inputs.UPGRADE_BLOCK_HEIGHT }} \ - --description \"${{ inputs.DESCRIPTION }}\" \ - --title \"${{ inputs.UPGRADE_NAME }}\" \ - --keyring-backend test \ - --chain-id \"${{ env.CHAIN_ID }}\" \ - --upgrade-info \'{\"binaries\":{\"zetacored-linux/amd64\":\"${{ inputs.ZETACORED_URL }}?checksum=sha256:${{ env.ZETACORED_CHECKSUM }}\",\"zetaclientd-linux/amd64\":\"${{ inputs.ZETACLIENTD_URL }}?checksum=sha256:${{ env.ZETACLIENTD_CHECKSUM }}\"}}\' \ - --yes']" | jq .Command.CommandId -r || exit 1) - echo COMMAND_ID: $COMMAND_ID - check_cmd_status $COMMAND_ID - sleep 20 - - # upgrade-info With Checksum data --upgrade-info \'{\"binaries\":{\"zetacored-linux/amd64\":\"${{ inputs.ZETACORED_URL }}?checksum=sha256:${{ env.ZETACORED_CHECKSUM }}\",\"zetaclientd-linux/amd64\":\"${{ inputs.ZETACLIENTD_URL }}?checksum=sha256:${{ env.ZETACLIENTD_CHECKSUM }}\"}}\' \ - - - - name: Vote on Proposal (All Validator Nodes) - shell: bash - run: | - source ${{ github.action_path }}/functions - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Role,Values=validator \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=['export HOME=/home/zetachain && zetacored tx gov vote \$(zetacored q gov proposals --status voting_period --reverse -o json | jq -r .proposals[0].proposal_id) yes --from val --keyring-backend test --chain-id $CHAIN_ID --yes']" | jq .Command.CommandId -r || exit 1) - - echo COMMAND_ID: $COMMAND_ID - check_cmd_status $COMMAND_ID - - - name: Resume zetaclientd - shell: bash - run: | - source ${{ github.action_path }}/functions - COMMAND_ID=$(run_validators "systemctl restart zetaclientd") - echo COMMAND_ID: $COMMAND_ID - check_cmd_status $COMMAND_ID \ No newline at end of file diff --git a/.github/actions/cosmovisor-upgrade/functions b/.github/actions/cosmovisor-upgrade/functions deleted file mode 100644 index 90c0ea8a23..0000000000 --- a/.github/actions/cosmovisor-upgrade/functions +++ /dev/null @@ -1,32 +0,0 @@ -#!/bin/bash - -run_validators () { - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Role,Values=validator \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=[$1]" | jq .Command.CommandId -r || exit 1) - echo "$COMMAND_ID" -} - -run_validator0 () { - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Name,Values=validator0 \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=[$1]" | jq .Command.CommandId -r || exit 1) - echo "$COMMAND_ID" -} - -check_cmd_status () { - COMMAND_ID=$1 - echo "COMMAND_ID: $COMMAND_ID" - COMMAND_STATUS=$(aws ssm list-commands --command-id "$COMMAND_ID" | jq '.Commands[0].Status' -r) - until [[ "$COMMAND_STATUS" == "Success" || "$COMMAND_STATUS" == "Failed" ]]; do - echo "Waiting for Command to complete. ID: $COMMAND_ID | Status: $COMMAND_STATUS" - sleep 2 - COMMAND_STATUS=$(aws ssm list-commands --command-id "$COMMAND_ID" | jq '.Commands[0].Status' -r) - done - echo "Complete. ID: $COMMAND_ID | Status: $COMMAND_STATUS" - if [ "$COMMAND_STATUS" == "Failed" ]; then - echo "Command ID $COMMAND_ID Failed" && exit 1 - fi -} \ No newline at end of file diff --git a/.github/actions/cosmovisor-upgrade/readme.md b/.github/actions/cosmovisor-upgrade/readme.md deleted file mode 100644 index 6d6d747a76..0000000000 --- a/.github/actions/cosmovisor-upgrade/readme.md +++ /dev/null @@ -1,26 +0,0 @@ -# Cosmosvisor Upgrade Proposal - -Creates a cosmovisor upgrade proposal and then issues a vote on all validators - -## Example - - name: Cosmovisor Upgrade Proposal and Vote - uses: ./.github/actions/cosmovisor-upgrade - with: - UPGRADE_NAME: ${{ github.event.inputs.UPGRADE_NAME }} - DESCRIPTION: "Upgrade Description Goes Here" - CHAIN_ID: ${{ env.CHAIN_ID }} - ZETACORED_CHECKSUM: "1234567" #SHA256 - ZETACORED_URL: "https://${{ env.S3_BUCKET_NAME }}.s3.amazonaws.com/builds/zeta-node/develop/zetacored" - ZETACLIENTD_CHECKSUM: "1234567" #SHA256 - ZETACLIENTD_URL: "https://${{ env.S3_BUCKET_NAME }}.s3.amazonaws.com/builds/zeta-node/develop/zetaclientd" - CHAIN_ID: ${{ github.event.inputs.CHAIN_ID }} - API_ENDPOINT: "https://api.${{ github.event.inputs.ENVIRONMENT }}.zetachain.com" - UPGRADE_BLOCK_HEIGHT: 999999 -## Functions File -These are bash functions used by the action. - -## Prerequestices - -### AWS Authentication -You must authenticate to AWS before calling this action - diff --git a/.github/actions/deploy-binaries/action.yml b/.github/actions/deploy-binaries/action.yml deleted file mode 100644 index c5a61e4181..0000000000 --- a/.github/actions/deploy-binaries/action.yml +++ /dev/null @@ -1,97 +0,0 @@ -name: 'Update Nodes' -description: 'Builds ZetaChain Binaries' -inputs: - S3_BUCKET_PATH: - description: 'S3 Bucket Name' - required: true - TAKE_SNAPSHOTS: - description: 'Take Snapshots of Node Storage before update' - required: false - default: "true" - BRANCH_OR_TAG_NAME: - description: 'Name of GitHub tag, branch, or release (Usually $GITHUB_REF_NAME)' - required: true - -runs: - using: "composite" - steps: - - name: Set ENV Variables" - shell: bash - run: | - echo "Running update-nodes Action" - echo "S3_BUCKET_PATH=${{ inputs.S3_BUCKET_PATH }}" >> $GITHUB_ENV - - - name: Get Deployment ID - shell: bash - run: | - echo "${{ inputs.BRANCH_OR_TAG_NAME }}" - echo "GITHUB_REF_NAME=${{ inputs.BRANCH_OR_TAG_NAME }}" >> $GITHUB_ENV - - - name: Snapshot All Running ZetaChain Instances - if: ${{ inputs.TAKE_SNAPSHOTS == 'true' }} - shell: bash - run: | - echo "Taking Snapshots of ZetaChain Instances" - INSTANCE_IDS=$(aws ec2 describe-instances --filters "Name=tag:Role,Values=validator" "Name=instance-state-name,Values=running"| jq -r '.Reservations[].Instances[].InstanceId') - while IFS= read -r INSTANCE_ID; do - echo "$INSTANCE_ID" - aws ec2 create-snapshots \ - --instance-specification InstanceId=$INSTANCE_ID,ExcludeBootVolume=true \ - --description "Snapshot Prior To Deployment ID: ${{ env.GITHUB_REF_NAME }}" \ - --copy-tags-from-source "volume" > jq - done <<< "$INSTANCE_IDS" - sleep 2 - - - name: Copy Package Files - shell: bash - run: | - echo "Copying Package Files from S3 to local node storage" - source ${{ github.action_path }}/functions - COMMAND_ID=$(run_ssm_cmds_validators "mkdir -p /deployment-files/${{ env.GITHUB_REF_NAME }} && wget https://${{ env.S3_BUCKET_PATH }}.s3.amazonaws.com/${{ env.GITHUB_REF_NAME }}/zetacored -O /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored && wget https://${{ env.S3_BUCKET_PATH }}.s3.amazonaws.com/${{ env.GITHUB_REF_NAME }}/zetaclientd -O /deployment-files/${{ env.GITHUB_REF_NAME }}/zetaclientd") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_api_nodes "mkdir -p /deployment-files/${{ env.GITHUB_REF_NAME }} && wget https://${{ env.S3_BUCKET_PATH }}.s3.amazonaws.com/${{ env.GITHUB_REF_NAME }}/zetacored -O /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_archive_nodes "mkdir -p /deployment-files/${{ env.GITHUB_REF_NAME }} && wget https://${{ env.S3_BUCKET_PATH }}.s3.amazonaws.com/${{ env.GITHUB_REF_NAME }}/zetacored -O /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored") - check_cmd_status $COMMAND_ID - - - name: Stop ZetaChain - shell: bash - run: | - echo "Stopping ZetaChain" - source ${{ github.action_path }}/functions - COMMAND_ID=$(run_ssm_cmds_validators "systemctl stop zetaclientd && systemctl stop cosmovisor") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_api_nodes "systemctl stop cosmovisor") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_archive_nodes "systemctl stop cosmovisor") - check_cmd_status $COMMAND_ID - - - name: Update ZetaNode Binaries - shell: bash - run: | - echo "Updating ZetaNode Binaries" - source ${{ github.action_path }}/functions - COMMAND_ID=$(run_ssm_cmds_validators "\ - cp /deployment-files/${{ env.GITHUB_REF_NAME }}/zetaclientd /home/zetachain/.zetacored/cosmovisor/current/bin/zetaclientd && \ - cp /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored /home/zetachain/.zetacored/cosmovisor/current/bin/zetacored") - check_cmd_status $COMMAND_ID - - COMMAND_ID=$(run_ssm_cmds_api_nodes "\ - cp /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored /home/zetachain/.zetacored/cosmovisor/current/bin/zetacored") - check_cmd_status $COMMAND_ID - - COMMAND_ID=$(run_ssm_cmds_archive_nodes "\ - cp /deployment-files/${{ env.GITHUB_REF_NAME }}/zetacored /home/zetachain/.zetacored/cosmovisor/current/bin/zetacored") - check_cmd_status $COMMAND_ID - - - name: Restart ZetaChain - shell: bash - run: | - echo "Restarting ZetaChain" - source ${{ github.action_path }}/functions - COMMAND_ID=$(run_ssm_cmds_validators "systemctl restart cosmovisor && systemctl restart zetaclientd") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_api_nodes "systemctl restart cosmovisor") - check_cmd_status $COMMAND_ID - COMMAND_ID=$(run_ssm_cmds_archive_nodes "systemctl restart cosmovisor") - check_cmd_status $COMMAND_ID diff --git a/.github/actions/deploy-binaries/functions b/.github/actions/deploy-binaries/functions deleted file mode 100644 index ef7836ae7c..0000000000 --- a/.github/actions/deploy-binaries/functions +++ /dev/null @@ -1,43 +0,0 @@ -#!/bin/bash - -run_ssm_cmds_validators () { - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Role,Values=validator \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=[$1]" | jq .Command.CommandId -r || exit 1) - echo "$COMMAND_ID" -} - -run_ssm_cmds_api_nodes () { - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Role,Values=api \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=[$1]" | jq .Command.CommandId -r || exit 1) - echo "$COMMAND_ID" -} - -run_ssm_cmds_archive_nodes () { - COMMAND_ID=$(aws ssm send-command \ - --targets Key=tag:Role,Values=archive \ - --document-name "AWS-RunShellScript" \ - --parameters "commands=[$1]" | jq .Command.CommandId -r || exit 1) - echo "$COMMAND_ID" -} - -check_cmd_status () { - COMMAND_ID=$1 - echo "COMMAND_ID: $COMMAND_ID" - COMMAND_STATUS=$(aws ssm list-commands --command-id "$COMMAND_ID" | jq '.Commands[0].Status' -r) - until [[ "$COMMAND_STATUS" == "Success" || "$COMMAND_STATUS" == "Failed" ]]; do - echo "Waiting for Command to complete. ID: $COMMAND_ID | Status: $COMMAND_STATUS" - sleep 2 - COMMAND_STATUS=$(aws ssm list-commands --command-id "$COMMAND_ID" | jq '.Commands[0].Status' -r) - done - echo "Complete. ID: $COMMAND_ID | Status: $COMMAND_STATUS" - if [ "$COMMAND_STATUS" == "Failed" ]; then - echo "Command ID $COMMAND_ID Failed" && exit 1 - fi -} - - - diff --git a/.github/actions/install-awscli/action.yml b/.github/actions/install-awscli/action.yml deleted file mode 100644 index f95a72eccd..0000000000 --- a/.github/actions/install-awscli/action.yml +++ /dev/null @@ -1,18 +0,0 @@ -name: 'AWSCLI:INSTALL' -description: 'Utilized for installing awscli' -inputs: - download_url: - description: "aws cli download url" - required: true -runs: - using: "composite" - steps: - - uses: actions/checkout@v3 - - - name: Install AWS CLI - shell: bash - if: ${{ env.ACT }} - run: | - curl "${{ inputs.download_url }}" -o "awscliv2.zip" - unzip awscliv2.zip - sudo ./aws/install --update diff --git a/.github/actions/install-dependencies/action.yml b/.github/actions/install-dependencies/action.yml index aa51cb5d67..d60a8f4711 100644 --- a/.github/actions/install-dependencies/action.yml +++ b/.github/actions/install-dependencies/action.yml @@ -61,16 +61,7 @@ runs: if: ${{ inputs.skip_docker_compose == 'false' }} shell: bash run: | - sudo apt-get update || echo "Issue running apt-get update." - sudo apt-get install \ - ca-certificates \ - curl \ - gnupg \ - lsb-release -y || echo "issue installing dependencies" - sudo mkdir -p /etc/apt/keyrings - sudo curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo gpg --no-tty --batch --dearmor --yes -o /etc/apt/keyrings/docker.gpg - echo \ - "deb [arch=$(dpkg --print-architecture) signed-by=/etc/apt/keyrings/docker.gpg] https://download.docker.com/linux/ubuntu \ - $(lsb_release -cs) stable" | sudo tee /etc/apt/sources.list.d/docker.list > /dev/null - sudo apt-get update || echo "Issue running apt-get update." - sudo apt-get install docker-compose-plugin -y || echo "Issue installing docker compose" + DESTINATION=/usr/local/bin/docker-compose + VERSION=v2.23.3 + sudo curl -L https://github.com/docker/compose/releases/download/${VERSION}/docker-compose-$(uname -s)-$(uname -m) -o $DESTINATION + sudo chmod 755 $DESTINATION diff --git a/.github/actions/upload-to-s3/action.yml b/.github/actions/upload-to-s3/action.yml deleted file mode 100644 index 3afe70e8a2..0000000000 --- a/.github/actions/upload-to-s3/action.yml +++ /dev/null @@ -1,35 +0,0 @@ -name: 'Upload Deployment Files To S3' -description: 'Uploads Files To S3' -inputs: - bucket-name: - description: 'S3 Bucket Name' - required: true - release-name: - description: 'Name of GitHub tag or release (Usually $GITHUB_REF_NAME)' - required: true - git-sha: - description: 'SHA hash of GitHub commit' - required: true - files: - description: "Newline-delimited list of asset files to upload" - required: true - -runs: - using: "composite" - steps: - - name: Upload Files - run: | - echo "Running Upload-To-S3 Action" - if [[ "${{ inputs.release-name }}" == "develop" ]]; then - echo "Use GITHUB_SHA instead of develop branch name" - S3_PREFIX=${{ inputs.git-sha }} - else - S3_PREFIX=${{ inputs.release-name }} - fi - - while IFS= read -r FILEPATH; do - FILENAME=$(echo "${FILEPATH}" | cut -d / -f2) - aws s3 cp "${FILEPATH}" "s3://${{ inputs.bucket-name }}/${{ inputs.release-name }}/${FILENAME}" - done <<< $(echo "${{ inputs.files }}" | awk NF) - shell: bash - diff --git a/.github/actions/upload-to-s3/readme.md b/.github/actions/upload-to-s3/readme.md deleted file mode 100644 index 33cde7c86d..0000000000 --- a/.github/actions/upload-to-s3/readme.md +++ /dev/null @@ -1,17 +0,0 @@ -# Uploade Files To S3 - - -## Example - -``` - - name: upload-files-to-s3 - uses: ./.github/actions/upload-to-s3 - with: - bucket-name: ${{ env.S3_BUCKET_PATH }} - release-name: "$(echo ${{ github.ref_name }} | tr '//' '-')" - git-sha: ${{ github.sha }} - files: | - zetacored - zetaclientd - cosmovisor -``` \ No newline at end of file diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 93e26a1c31..d71ccd8f2a 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -48,7 +48,7 @@ jobs: cpu_architecture: ${{ env.CPU_ARCH }} skip_python: "true" skip_aws_cli: "true" - skip_docker_compose: "true" + skip_docker_compose: "false" - name: Test uses: nick-fields/retry@v2 @@ -78,7 +78,7 @@ jobs: run: rm -rf * smoke-test: - runs-on: ["zeta-runners"] + runs-on: buildjet-4vcpu-ubuntu-2204 timeout-minutes: 25 steps: - uses: actions/checkout@v3 diff --git a/.github/workflows/publish-release.yml b/.github/workflows/publish-release.yml index 4f8f08ae6e..951f7a2888 100644 --- a/.github/workflows/publish-release.yml +++ b/.github/workflows/publish-release.yml @@ -130,46 +130,7 @@ jobs: touch .release-env make release - announce-release: - if: github.event.pull_request.merged == true - runs-on: ubuntu-latest - timeout-minutes: 10 - needs: - - publish-release - steps: - - uses: actions/checkout@v3 - - name: Get Version - run: | - VERSION=$(cat app/setup_handlers.go | grep "const releaseVersion" | cut -d ' ' -f4 | tr -d '"') - echo "BINARY_VERSION=${VERSION}" >> ${GITHUB_ENV} - - - name: Determine Release Type - id: determine_release_type - run: | - if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0+$ ]]; then - echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} - elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then - echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV} - else - echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV} - fi - - - name: "SEND:DISCORD:MESSAGE" - if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major' - uses: gzukel/CosmosComposites/send_discord_message@main - with: - discord_token: "${{ secrets.DISCORD_TOKEN }}" - discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" - discord_message: | - Hey <@&1122981184255840306>! A new version of the ZetaChain software has been released. - - Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. - We will submit a governance proposal in the next few days. - More specific information including block height will be shared as part of the governance proposal. - - See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} - - name: Clean Up Workspace if: always() shell: bash - run: rm -rf * + run: rm -rf * \ No newline at end of file diff --git a/.github/workflows/rc-release.yml b/.github/workflows/rc-release.yml index de91c94649..fcd8faff9c 100644 --- a/.github/workflows/rc-release.yml +++ b/.github/workflows/rc-release.yml @@ -82,44 +82,6 @@ jobs: touch .release-env make release - announce-release: - runs-on: ubuntu-latest - timeout-minutes: 10 - needs: - - publish-release - steps: - - uses: actions/checkout@v3 - - name: Get Version - run: | - VERSION=$(cat app/setup_handlers.go | grep "const releaseVersion" | cut -d ' ' -f4 | tr -d '"') - echo "BINARY_VERSION=${VERSION}" >> ${GITHUB_ENV} - - - name: Determine Release Type - id: determine_release_type - run: | - if [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.0\.0+$ ]]; then - echo "RELEASE_TYPE=major" >> ${GITHUB_ENV} - elif [[ "${{ env.BINARY_VERSION }}" =~ ^v[0-9]+\.[0-9]+\.[1-9]+$ ]]; then - echo "RELEASE_TYPE=minor" >> ${GITHUB_ENV} - else - echo "RELEASE_TYPE=unknown" >> ${GITHUB_ENV} - fi - - - name: "SEND:DISCORD:MESSAGE" - if: steps.determine_release_type.outputs.RELEASE_TYPE == 'major' - uses: gzukel/CosmosComposites/send_discord_message@main - with: - discord_token: "${{ secrets.DISCORD_TOKEN }}" - discord_channel_id: "${{ secrets.DISCORD_CHANNEL_ID }}" - discord_message: | - Hey <@&1122981184255840306>! A new version of the ZetaChain software has been released. - - Major Version Upgrade (e.g. v5.x.x to V6.x.x) must be completed through a governance proposal. - We will submit a governance proposal in the next few days. - More specific information including block height will be shared as part of the governance proposal. - - See the release notes for more details. https://github.com/zeta-chain/node/releases/tag/${{ env.BINARY_VERSION }} - - name: Clean Up Workspace if: always() shell: bash diff --git a/changelog.md b/changelog.md index 1d6830bff4..fc62af2dd3 100644 --- a/changelog.md +++ b/changelog.md @@ -52,6 +52,7 @@ ### Tests ### CI +* Removed private runners and unused GitHub Action ## Version: v11.0.0