Skip to content

add ideathon thing (hope this does not break cicd) #28

add ideathon thing (hope this does not break cicd)

add ideathon thing (hope this does not break cicd) #28

name: Jekyll site CI
on:
push:
branches: [ "master" ]
pull_request:
branches: [ "master" ]
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Build the site in the jekyll/builder container
run: |
docker run \
-v ${{ github.workspace }}:/srv/jekyll -v ${{ github.workspace }}/_site:/srv/jekyll/_site \
jekyll/builder:latest /bin/bash -c "chmod -R 777 /srv/jekyll && rm Gemfile && jekyll build --future"
- name: Install SSH Key
uses: shimataro/ssh-key-action@v2
with:
key: ${{ secrets.SSH_PRIVATE_KEY }}
known_hosts: 'just-a-placeholder-so-we-dont-get-errors'
- name: Adding Known Hosts
run: ssh-keyscan -H ${{ vars.CS_DEPT_HOST }} >> ~/.ssh/known_hosts
- name: Deploy with rsync
run: rsync -rcvz --delete --exclude='.git*' --exclude='.zfs' _site/ "${{ vars.SSH_USERNAME }}@${{ vars.CS_DEPT_HOST }}:${{ vars.DEPLOY_DIRECTORY }}/"