deploy.yml
Unicode text, UTF-8 text
1name: Python package 2 3on: [push] 4 5jobs: 6build: 7runs-on: ubuntu-latest 8strategy: 9matrix: 10python-version: ["3.12"] 11steps: 12- uses: actions/checkout@v4 13# this Action should follow steps to set up Python build environment 14- name: Set up Python ${{ matrix.python-version }} 15uses: actions/setup-python@v4 16with: 17python-version: ${{ matrix.python-version }} 18- name: Install Python dependencies 19uses: py-actions/py-dependency-install@v4 20with: 21path: "requirements.txt" 22# You can test your matrix by printing the current Python version 23- name: Pull Changes(?) 24run: | 25git pull 26- name: Run Python Builder 27run: python build.py gh-pages-deploy 28- name: Commit docs directory 29run: | 30git add docs/ 31git config --global user.name 'github-actions' 32git config --global user.email 'github-actions@github.com' 33git commit -am "build to docs dir" 34git push 35- name: Deploy 🚀 36uses: JamesIves/github-pages-deploy-action@v4 37with: 38folder: docs # The folder the action should deploy.