Skip to content

Commit

Permalink
Create deploy.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
rkdan authored Sep 5, 2024
1 parent 0c45989 commit 0658f40
Showing 1 changed file with 36 additions and 0 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/deploy.yml
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

0 comments on commit 0658f40

Please sign in to comment.