Skip to content

Commit

Permalink
Merge pull request #26 from lsd-ucsc/remove-old-workflow
Browse files Browse the repository at this point in the history
remove the old (as of jan 2024) rsync workflow
  • Loading branch information
reeselevine authored Oct 30, 2024
2 parents 48b740e + 97dc94f commit 8aa0c45
Showing 1 changed file with 0 additions and 35 deletions.
35 changes: 0 additions & 35 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8aa0c45

Please sign in to comment.