-
-
Notifications
You must be signed in to change notification settings - Fork 198
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'econ-ark:master' into Update_JAC
- Loading branch information
Showing
45 changed files
with
3,372 additions
and
535 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,74 @@ | ||
name: Documentation | ||
|
||
# Run on all pushes and pull requests, and on demand | ||
on: | ||
push: | ||
pull_request: | ||
workflow_dispatch: | ||
|
||
# Limit workflow permissions | ||
permissions: | ||
contents: read | ||
|
||
# Limit simultaneous workflow runs | ||
concurrency: | ||
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} | ||
cancel-in-progress: true | ||
|
||
env: | ||
FORCE_COLOR: "1" | ||
|
||
jobs: | ||
render: | ||
name: Render | ||
runs-on: ubuntu-latest | ||
permissions: | ||
contents: write | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- name: Set up Python 3.9 | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: "3.9" # Numba doesn't support Python 3.11 [2023-05] | ||
cache: 'pip' | ||
cache-dependency-path: | | ||
requirements/base.txt | ||
requirements/dev.txt | ||
- name: Install Pandoc | ||
run: sudo apt-get install --yes pandoc | ||
|
||
- name: Update pip | ||
run: python -m pip install --upgrade pip | ||
|
||
- name: Install HARK | ||
run: python -m pip install .[dev] | ||
|
||
- name: Run Sphinx | ||
run: > | ||
sphinx-build | ||
-M html Documentation HARK-docs | ||
-T | ||
- name: Set up git for deployment | ||
run: | | ||
git config user.name "${{ github.actor }}" | ||
git config user.email "${{ github.actor }}@users.noreply.github.com" | ||
git config --local --unset-all http.https://github.com/.extraheader | ||
- name: Commit all rendered HTML files | ||
run: | | ||
git switch --orphan gh-pages | ||
git add --all HARK-docs/html | ||
git commit -qm "Documentation from @ ${{ github.repository }}@${{ github.sha }}" | ||
- name: Deploy to GitHub Pages | ||
# Only deploy to Pages on pushes to HEAD | ||
if: (github.repository_owner == 'Econ-ARK') && (github.event_name == 'push') && (github.ref_name == 'master') | ||
run: > | ||
git push | ||
--force | ||
https://x-access-token:${{ github.token }}@github.com/${{ github.repository }} | ||
`git subtree split --prefix HARK-docs/html gh-pages`:refs/heads/gh-pages |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
Oops, something went wrong.