Files
coursebook/_scripts/site_deploy.sh
Eric Zhang 8c49826577 Migrate to Github Actions (#184)
* Initial Github Actions workflow + script modifications

* Remove old keys

* Add deploy key

* Rename deploy key

* Oops add back

* Some changes after testing with website repo

* Remove env section

* Temporary changes for testing CI

* Enable github-actions on this branch for testing

* Fix?

* Only test out EPUB

* Fix?

* Fix?

* Update

* Typo and enable PDF

* Enable WIKI

* Add site deploy key

* Revert testing changes + Disable Github Actions on this branch

* Update README

* Typo

* Lowercase
2021-02-24 18:35:59 -08:00

18 lines
435 B
Bash

#!/bin/bash
set -e;
# Set up ssh
git config --global core.sshCommand "ssh -i /tmp/deploy_site -F /dev/null"
export DOCS_SHA=$(git rev-parse --short HEAD)
# Clone with submodules
git clone -b develop --depth 1 git@github.com:illinois-cs241/illinois-cs241.github.io.git ${CLONE_DIR}
cd ${CLONE_DIR}
git commit --allow-empty -m "Updating docs to ${DOCS_SHA}"
git push origin develop
# Go back to the build dir
cd ${GITHUB_WORKSPACE}