mirror of
https://github.com/cs341-illinois/coursebook.git
synced 2026-10-21 05:59:42 +08:00
* 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
18 lines
435 B
Bash
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}
|