Skip to content

Commit

Permalink
Merge pull request #21 from ludwig-cf/feature-22
Browse files Browse the repository at this point in the history
Move to github action
  • Loading branch information
kevinstratford authored Jul 25, 2024
2 parents 148ec58 + 69a02d8 commit 695609c
Show file tree
Hide file tree
Showing 67 changed files with 36 additions and 25 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/website.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: "Web site"
on:
- workflow_dispatch

jobs:
docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- 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:
branch: gh-pages
directory: gh-pages
github_token: ${{ secrets.GITHUB_TOKEN }}
24 changes: 0 additions & 24 deletions .travis.yml

This file was deleted.

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 695609c

Please sign in to comment.