Deprecate project and update README.md (#99) #210
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: Run Autodoc | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
run_test: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v2 | |
- name: Pytest 3.7 | |
uses: actions/setup-python@v2 | |
with: | |
python-version: '3.7' | |
- name: Install dependencies | |
run: | | |
python -m pip install --upgrade pip | |
sudo apt-get install libsndfile1-dev | |
pip install -e .['all'] | |
- name: Updating docs | |
run: | | |
rm -rf docs | |
rm -rf docsrc/_build | |
rm -rf docsrc/modules.rst | |
sphinx-apidoc -o docsrc vectorhub | |
python -m sphinx docsrc/. docs | |
touch docs/.nojekyll | |
echo ${{ github.ref }} | |
git add . | |
git config --local user.email "[email protected]" | |
git config --local user.name "GitHub Action" | |
git commit -m "ci: Automated build push" -a | exit 0 | |
- name: Push changes | |
if: github.ref == 'refs/heads/main' | |
uses: ad-m/github-push-action@master | |
with: | |
github_token: ${{ secrets.SECRET_TOKEN }} | |
branch: ${{ github.ref }} |