diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 445f149..9cabf62 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -68,38 +68,3 @@ jobs: set -e -u -o pipefail set -x mv ../hugo . - - # This workflow contains a job called "deploy" - rsync: - # only rsync when actually merging to the main branch - if: github.base_ref == '' - # only rsync after the site is bulit - needs: build - - # The type of runner that the job will run on - runs-on: ubuntu-latest - - # Steps represent a sequence of tasks that will be executed as part of the job - steps: - # Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it - - uses: actions/checkout@v2 - with: - # checkout the public branch to rsync it to the prod server - ref: public - fetch-depth: 0 - - - name: Rsync to UCSC ITS site - env: - KNOWN_HOSTS: ${{ secrets.KNOWN_HOSTS }} - REMOTE_DIR: ${{ secrets.ITS_DIR }} - REMOTE_HOST: ${{ secrets.ITS_HOST }} - REMOTE_PWD: ${{ secrets.ITS_PWD }} - REMOTE_USR: ${{ secrets.ITS_USER }} - run: | - set -e -u -o pipefail +o history - set -x - mkdir ~/.ssh - echo "${KNOWN_HOSTS?}" >> ~/.ssh/known_hosts - sudo apt-get install sshpass - sshpass -p "${REMOTE_PWD?}" rsync -Pzca --exclude=".*" --delete-after . "${REMOTE_USR?}@${REMOTE_HOST?}:${REMOTE_DIR?}" - history -c