Skip to content

Commit

Permalink
Build and publish docs to GitHub Pages
Browse files Browse the repository at this point in the history
  • Loading branch information
fabianp committed Sep 20, 2023
1 parent c488cd9 commit 60d8dfc
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 0 deletions.
30 changes: 30 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
name: docs

on:
push:
branches: ["main"]

jobs:
build-and-deploy:
name: "Build and deploy documentation"
runs-on: ubuntu-latest
steps:
- uses: "actions/checkout@v3"
- name: Set up Python 3.11
uses: "actions/setup-python@v4"
with:
python-version: 3.11
cache: 'pip'
- run: pip install -r docs/requirements.txt
- name: Build documentation
run: cd docs && make html
- uses: cpina/github-action-push-to-another-repository@main
env:
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }}
with:
source-directory: 'docs/_build/html'
destination-github-username: 'jaxopt'
destination-repository-name: 'jaxopt.github.io'
user-email: [email protected]
target-branch: main
target-directory: dev
2 changes: 2 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ jobs:
- uses: "actions/setup-python@v4"
with:
python-version: "${{ matrix.python-version }}"
cache: 'pip'
- name: Install dependencies
run: |
set -xe
Expand Down Expand Up @@ -59,6 +60,7 @@ jobs:
uses: "actions/setup-python@v4"
with:
python-version: 3.11
cache: 'pip'
- name: Install dependencies
run: |
set -xe
Expand Down

0 comments on commit 60d8dfc

Please sign in to comment.