Skip to content

Commit

Permalink
Merge branch 'hackathon' of github.com:empriselab/RCareWorld into hac…
Browse files Browse the repository at this point in the history
…kathon
  • Loading branch information
YoruCathy committed Apr 26, 2024
2 parents 214bc9f + eae4006 commit f5c74b2
Show file tree
Hide file tree
Showing 2 changed files with 49 additions and 51 deletions.
51 changes: 0 additions & 51 deletions .github/workflows/jekyll-gh-pages.yml

This file was deleted.

49 changes: 49 additions & 0 deletions .github/workflows/pdoc_build.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Generate Documents with pdoc

on:
push:
branches:
- main
- hackathon

jobs:
setup-python:
name: Generate Documentations
runs-on: ubuntu-22.04
permissions: # Job-level permissions configuration starts here
contents: write # 'write' access to repository contents
steps:
- name: Checkout code
uses: actions/checkout@v3
with:
fetch-depth: 0 # Ensures history is available for pushing changes

- name: Set up Python
uses: actions/setup-python@v4
with:
python-version: '3.10' # Set this to your Python version

- name: install-rcareworld
run: |
cd ./pyrcareworld
pip install -r requirements.txt
pip install -e .
cd ../
- name: Install pdoc
run: |
pip install pdoc3
pdoc --skip-errors --html pyrcareworld -o docs
- name: Commit Documentation
run: |
git config --local user.email "[email protected]"
git config --local user.name "GitHub Actions"
git add docs/*
git commit -m "Update documentation" || echo "No changes to commit"
- name: Push Changes
uses: ad-m/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
branch: ${{ github.ref }}

0 comments on commit f5c74b2

Please sign in to comment.