Skip to content

Commit

Permalink
Use static typing; update doc bldg workflow (#21)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsh9 authored Feb 13, 2024
1 parent 4c6e7a5 commit 69a4fc7
Show file tree
Hide file tree
Showing 46 changed files with 3,274 additions and 2,376 deletions.
23 changes: 10 additions & 13 deletions .github/workflows/build-and-deploy-docs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,8 @@ on:
push:
branches: ["main"]

pull_request:

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

Expand All @@ -22,11 +24,11 @@ concurrency:
cancel-in-progress: false

jobs:
build_docs:
build_docs_and_deploy:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: actions/setup-python@v3
- uses: actions/checkout@v4
- uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install dependencies
Expand All @@ -37,22 +39,17 @@ jobs:
run: |
cd docs
make clean html
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: Sanity check
run: |
pwd
tree docs
- name: Setup Pages
uses: actions/configure-pages@v4
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: './docs/build/html'
path: "./docs/build/html"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
1 change: 1 addition & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ repos:
rev: 0.2.3
hooks:
- id: cercis
- id: cercis-jupyter

- repo: https://github.com/pre-commit/mirrors-prettier
rev: v3.0.3
Expand Down
2 changes: 1 addition & 1 deletion PySeismoSoil/__init__.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Author: Jian Shi

__version__ = 'v0.5.3'
__version__ = 'v0.5.4'
Loading

0 comments on commit 69a4fc7

Please sign in to comment.