refactor(harmonic-oscillator): separate the class of simple and dampe… #17
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
name: Publish Docs | |
on: | |
push: | |
branches: | |
- main | |
workflow_dispatch: | |
inputs: | |
directory: | |
description: 'Build docs' | |
default: 'build it now' | |
required: false | |
jobs: | |
pre-commit: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.12" | |
- uses: pre-commit/[email protected] | |
deploy: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/[email protected] | |
- uses: actions/[email protected] | |
with: | |
python-version: "3.12" | |
- name: Setup Poetry | |
uses: abatilo/[email protected] | |
with: | |
poetry-version: 1.8.2 | |
- name: Install Packages | |
run: poetry install --with docs,tutorial | |
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com' | |
- name: Build Docs | |
run: poetry run mkdocs build | |
- name: Deploy 🚀 | |
uses: JamesIves/[email protected] | |
with: | |
folder: site | |
clean-exclude: pr-preview/ | |
force: false |