Skip to content

Commit

Permalink
new deploy script for everything
Browse files Browse the repository at this point in the history
  • Loading branch information
jprester committed Jan 20, 2021
1 parent 1c2f747 commit f7996a3
Show file tree
Hide file tree
Showing 7 changed files with 54 additions and 10 deletions.
12 changes: 7 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,7 @@ if everything is working feel at this point feel free to start working on the we

Once you are done with your work you cant now try to publish the changes. To do that you need to push the git changes both for the repo and for /public folder that is set as git submodule for the website html content.

First generate static html stuff that will be deployed to the website:

`hugo`

and finally deploy all the changes by running the deploy script.
Easiest way to do it is to run deploy scripts:
`./deploy.sh`

If that doesnt work you can do it manually:
Expand All @@ -37,6 +33,12 @@ To use the blog, the instructions are similar like in the previous section with
2. when generating static html run: `hugo --config=config-blog.toml`
3. when deploying run: `./deploy_blog.sh`

### Update: now there is the script that should do all of this for you. You just need to run:

`./run_all.sh`

and it will generates all the sites and deploy them. (both for website and blog).

## Editing content
The theme and content structure should be similar to the standard Hugo projects. Content for main pages is in `/content folder`. The Blog is in `/content/blog`.

Expand Down
2 changes: 1 addition & 1 deletion content-blog/welcome-to-eleutherai.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ description: "This is a short description of the page"
---
Welcome to eleutherAI. We are still working on a website so there is no content on this blog yet.

Stay tuned though... exciting things are coming.
Stay tuned though... exciting things are coming!!
2 changes: 1 addition & 1 deletion content/get-involved.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ layout: page

## Get Involved

We welcome contributors of all backgrounds and experience levels. Joining EleutherAI is as simple as [joining us on Discord](https://discord.com/invite/vtRgjbM) and picking a project to contribute to. However we have some areas where we are particularly interested in recruiting experienced collaborators:
We welcome contributors of all backgrounds and experience levels! Joining EleutherAI is as simple as [joining us on Discord](https://discord.com/invite/vtRgjbM) and picking a project to contribute to. However we have some areas where we are particularly interested in recruiting experienced collaborators:

- **GPT-Neo** is looking for people with expertise in ML pipelining and developing ML apps with user-friendly UIs.

Expand Down
2 changes: 1 addition & 1 deletion deploy_blog.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ set -e
printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"

# Build the project.
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
hugo --config=config-blog.toml # if using a theme, replace with `hugo -t <YOURTHEME>`

# Go To Public folder
cd public-blog
Expand Down
2 changes: 1 addition & 1 deletion public
2 changes: 1 addition & 1 deletion public-blog
42 changes: 42 additions & 0 deletions run_all.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
#!/bin/sh

# If a command fails then the deploy stops
set -e

printf "\033[0;32mDeploying updates to GitHub...\033[0m\n"

# Build the project.
hugo # if using a theme, replace with `hugo -t <YOURTHEME>`
hugo --config=config-blog.toml # if using a theme, replace with `hugo -t <YOURTHEME>`

# Go To Public folder
cd public

# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi
git commit -m "$msg"

# Push source and build repos.
git push origin master

# Go To Blog folder
cd ../public-blog/

# Add changes to git.
git add .

# Commit changes.
msg="rebuilding site $(date)"
if [ -n "$*" ]; then
msg="$*"
fi
git commit -m "$msg"

# Push source and build repos.
git push origin master

0 comments on commit f7996a3

Please sign in to comment.