A mirror of my website's source code.

By using this site, you agree to have cookies stored on your device, strictly for functional purposes, such as storing your session and preferences.

Dismiss

 deploy.yml

View raw Download
text/plain • 1.39 kiB
Unicode text, UTF-8 text
        
            
1
name: Python package
2
3
on: [push]
4
5
jobs:
6
build:
7
runs-on: ubuntu-latest
8
strategy:
9
matrix:
10
python-version: ["pypy3.9", "pypy3.10", "3.9", "3.10", "3.11", "3.12"]
11
steps:
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 }}
15
uses: actions/setup-python@v4
16
with:
17
python-version: ${{ matrix.python-version }}
18
- name: Install Python dependencies
19
uses: py-actions/py-dependency-install@v4
20
with:
21
path: "requirements.txt"
22
# You can test your matrix by printing the current Python version
23
- name: Pull Changes(?)
24
run: |
25
git pull
26
- name: Run Python Builder
27
run: python build.py gh-pages-deploy
28
- name: Commit docs directory
29
run: |
30
git add docs/
31
git config --global user.name 'github-actions'
32
git config --global user.email 'github-actions@github.com'
33
git commit -am "Automated report"
34
git push
35
- name: Deploy 🚀
36
uses: JamesIves/github-pages-deploy-action@v4
37
with:
38
folder: docs # The folder the action should deploy.