-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #22 from abacef/gh-pages
Refactoring to use mkdocs
- Loading branch information
Showing
70 changed files
with
220 additions
and
907 deletions.
There are no files selected for viewing
This file was deleted.
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,43 @@ | ||
name: Deploy MkDocs to GitHub Pages | ||
|
||
on: | ||
push: | ||
branches: | ||
- gh-pages-src | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
with: | ||
fetch-depth: 0 # Fetch all history for all tags and branches | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install dependencies | ||
run: | | ||
git checkout gh-pages-src | ||
pip install -r requirements.txt | ||
- name: Build and deploy | ||
run: | | ||
mkdocs build | ||
git config user.name "Juice Brenner Build Bot" | ||
git config user.email "seattlecommunitynetwork.org" | ||
git checkout gh-pages | ||
git add --all | ||
git stash | ||
rm -rf * | ||
git stash pop | ||
mv site/* . | ||
rm -r site | ||
git add --all | ||
git commit -m "Yet another automated deployment" | ||
git push | ||
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 |
---|---|---|
@@ -1,7 +1 @@ | ||
_site | ||
.sass-cache | ||
.jekyll-cache | ||
.jekyll-metadata | ||
vendor | ||
.swp | ||
.DS_Store | ||
venv |
Empty file.
Oops, something went wrong.