-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Jekyll build from commit 2a2882b by GitHub Action
- Loading branch information
vivarium-collective
committed
Nov 16, 2024
0 parents
commit 4bd2600
Showing
22 changed files
with
1,554 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
# Vivarium Collective Website | ||
[https://vivarium-collective.github.io](https://vivarium-collective.github.io) | ||
|
||
## Setup | ||
|
||
### Install Dependencies | ||
|
||
1. Install Ruby and Jekyll following [Jekyll's | ||
documentation](https://jekyllrb.com/docs/installation/). | ||
2. Install dependencies: | ||
|
||
```console | ||
$ bundle | ||
Fetching gem metadata from https://rubygems.org/.......... | ||
Resolving dependencies... | ||
Using bundler 2.2.17 | ||
``` | ||
|
||
## Usage | ||
|
||
### Compile Static HTML | ||
|
||
```console | ||
bundle exec jekyll build | ||
``` | ||
|
||
The static HTML will be placed in `_site`. | ||
|
||
### Serve Development Website | ||
|
||
```console | ||
bundle exec jekyll serve | ||
``` | ||
|
||
The website will be served at http://localhost:4000. Note that this | ||
command implicitly runs `jekyll build`. | ||
|
||
### Deploy to Production | ||
|
||
Note that you shouldn't have to do this in normal usage. GitHub Actions | ||
has been configured to deploy the latest code in `main` every night at | ||
midnight and upon every push to `main`. | ||
|
||
To deploy the compiled HTML to GitHub Pages, execute: | ||
|
||
```console | ||
./deploy.sh | ||
``` | ||
|
||
This will build the website and push the contents of `_site` to the | ||
`gh-pages` branch of the repository. |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
set -e | ||
|
||
BUILD_DIR=_site | ||
USERNAME="vivarium-collective" | ||
DEPLOY_BRANCH=gh-pages | ||
|
||
if [[ $(git remote -v) == *"@"* ]]; then | ||
GITHUBREMOTE="[email protected]:$USERNAME/$USERNAME.github.io.git" | ||
else | ||
GITHUBREMOTE="https://github.com/$USERNAME/$USERNAME.github.io.git" | ||
fi | ||
|
||
# Build Website | ||
JEKYLL_ENV=production bundle exec jekyll build | ||
|
||
# To avoid leaking git history, re-generate each time | ||
if [ -d "$BUILD_DIR/.git/" ]; then | ||
rm -rf "$BUILD_DIR/.git" | ||
fi | ||
|
||
git -C "$BUILD_DIR" init | ||
git -C "$BUILD_DIR" add -A | ||
git -C "$BUILD_DIR" commit -m 'deploy' | ||
src_branch=$(git -C $BUILD_DIR rev-parse --abbrev-ref HEAD) | ||
git -C "$BUILD_DIR" push -f "$GITHUBREMOTE" $src_branch:$DEPLOY_BRANCH |
Oops, something went wrong.