git.delta.rocks / unique-network / refs/commits / 3bed4e0e0176

difftreelog

source

.github/workflows/node_build_test.yml1.5 KiBsourcehistory
1name: Build & test23# Controls when the action will run. 4on:5 # Triggers the workflow on push or pull request events but only for the master branch6  push:7    branches: [ develop ]8 # pull_request:9 #   branches: [ develop ]10  # Allows you to run this workflow manually from the Actions tab11  workflow_dispatch:1213# A workflow run is made up of one or more jobs that can run sequentially or in parallel14jobs:15  build:16    # The type of runner that the job will run on17    runs-on: ubuntu-20.041819  #  if: github.event_name == 'pull_request' && github.event.action == 'closed' && github.event.pull_request.merged == true2021    # Steps represent a sequence of tasks that will be executed as part of the job22    steps:23      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it24      - uses: actions/checkout@v225          26     #runs ssh connection27      - name: Go to server28        uses: appleboy/ssh-action@master29        with:30          host: ${{ secrets.SERVER_IP }}31          username: ${{ secrets.SERVER_USERNAME }}32          key: ${{ secrets.KEY }}33          port: ${{ secrets.SERVER_PORT }}34          command_timeout: 300m35          script: |36            eval $(ssh-agent -s)37            ssh-add /home/devops/.ssh/git_hub38            git clone git@github.com:UniqueNetwork/unique-chain.git39            cd unique-chain40            git checkout develop41            # git pull --all42            chmod +x ci_node.sh43            ./ci_node.sh44            rm -rf /home/polkadot/unique-chain