Skip to content

Commit

Permalink
Reorganise for git action
Browse files Browse the repository at this point in the history
  • Loading branch information
kevinstratford committed Jul 25, 2024
1 parent 3e660c9 commit 69a02d8
Show file tree
Hide file tree
Showing 66 changed files with 26 additions and 3 deletions.
28 changes: 26 additions & 2 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,30 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: ammaraskar/sphinx-action@master
- uses: actions/setup-python@v5
- name: Install dependencies
run: |
pip install sphinx
- name: Build
run: |
cd docs
make html
- name: Commit documentation changes
run: |
git clone https://github.com/ludwig-cf/ludwig-cf.github.io.git --branch gh-pages --single-branch gh-pages
cp -r docs/_build/html/* gh-pages/
cp docs/_build/html/.nojekyll gh-pages
cd gh-pages
git config --local user.email "[email protected]"
git config --local user.name "GitHub Action"
git add .
git commit -m "Update documentation" -a || true

- name: Push changes
uses: ad-m/github-push-action@master
with:
docs-folder: "./"
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
File renamed without changes.
File renamed without changes.
1 change: 0 additions & 1 deletion Makefile → docs/Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -19,4 +19,3 @@ help:
@$(SPHINXBUILD) -M $@ "$(SOURCEDIR)" "$(BUILDDIR)" $(SPHINXOPTS) $(O)
cp CNAME $(BUILDDIR)/html/CNAME
cp .nojekyll $(BUILDDIR)/html/.nojekyll
cp README.md $(BUILDDIR)/html/README.md
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes.
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes
File renamed without changes.
File renamed without changes

0 comments on commit 69a02d8

Please sign in to comment.