Skip to content

Commit

Permalink
Updated GHA workflow. (#27)
Browse files Browse the repository at this point in the history
* Updated GHA workflow.
* Added Django and furo theme dependencies. 
* Removed upload workflow steps. Refs #22.
  • Loading branch information
carltongibson committed Apr 4, 2023
1 parent 6225286 commit 459fa77
Showing 1 changed file with 5 additions and 13 deletions.
18 changes: 5 additions & 13 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
name: Build & Upload
name: Build Docs

on:
# Trigger on pushes to the main branch only.
Expand All @@ -13,23 +13,15 @@ jobs:
build-and-upload:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
- uses: actions/setup-python@v2
- uses: actions/checkout@v3
- uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install Sphinx myst-parser
pip install Django Sphinx myst-parser furo
pip install -e .
- name: Build docs
run: make json
working-directory: ./docs
- name: Install SSH key
uses: carltongibson/ssh-key-action@v2
with:
key: ${{ secrets.SSH_KEY }}
name: id_rsa # optional
known_hosts: ${{ secrets.SSH_KNOWN_HOSTS }}
- name: rsync files
working-directory: ./docs
run: rsync -a -e 'ssh -i ~/.ssh/id_rsa' ./build/json/ ${{ secrets.SSH_USER }}@${{ secrets.SSH_HOST }}:${{ secrets.RSYNC_TARGET_PATH }}

0 comments on commit 459fa77

Please sign in to comment.