git.delta.rocks / unique-network / refs/commits / 5904c9a198aa

difftreelog

source

node_build_test.yml1.3 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: [ master ]8  pull_request:9    branches: [ master ]1011  # Allows you to run this workflow manually from the Actions tab12  workflow_dispatch:1314# A workflow run is made up of one or more jobs that can run sequentially or in parallel15jobs:16  build:17    # The type of runner that the job will run on18    runs-on: ubuntu-20.041920    # Steps represent a sequence of tasks that will be executed as part of the job21    steps:22      # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it23      - uses: actions/checkout@v224          25     #runs ssh connection26      - name: Go to server27        uses: appleboy/ssh-action@master28        with:29          host: ${{ secrets.SERVER_IP }}30          username: ${{ secrets.SERVER_USERNAME }}31          key: ${{ secrets.KEY }}32          port: ${{ secrets.SERVER_PORT }}33          # command_timeout: 200m34          script: |35            eval $(ssh-agent -s)36            ssh-add /home/devops/.ssh/git_hub37            git clone git@github.com:usetech-llc/nft_private.git38            cd nft_private39            git checkout develop40            # git pull --all41            chmod +x ci_node.sh42            ./ci_node.sh