-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1 changed file
with
36 additions
and
0 deletions.
There are no files selected for viewing
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,36 @@ | ||
name: Deploy MkDocs to Documentation Repo | ||
|
||
on: | ||
push: | ||
branches: | ||
- main | ||
|
||
jobs: | ||
deploy: | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v2 | ||
with: | ||
python-version: '3.x' | ||
|
||
- name: Install MkDocs and dependencies | ||
run: | | ||
pip install mkdocs mkdocs-material mkdocstrings | ||
- name: Build the MkDocs site | ||
run: mkdocs build | ||
|
||
- name: Deploy to Documentation Repo | ||
run: | | ||
git config --global user.name 'github-actions' | ||
git config --global user.email '[email protected]' | ||
git clone --branch gh-pages https://github.com/acceleratescience/documentation.git | ||
rsync -av --delete ./site/ documentation/packaging-publishing/ | ||
cd documentation | ||
git add . | ||
git commit -m "Deploy packaging-publishing to /packaging-publishing" | ||
git push |