@@ -11,34 +11,20 @@ jobs:
1111
1212 steps :
1313 # Checkout the repository
14- - name : Checkout repository
15- uses : actions/checkout@v2
14+ - uses : actions/checkout@v2
1615
1716 # Set up Python 3.8
18- - name : Set up Python 3.8
19- uses : actions/setup-python@v4
17+ - uses : actions/setup-python@v4
2018 with :
2119 python-version : ' 3.8'
2220
23- # Cache Python packages to speed up builds
24- - name : Cache Python packages
25- uses : actions/cache@v3
26- with :
27- path : ~/.cache/pip
28- key : ${{ runner.os }}-pip-${{ hashFiles('**/requirements.txt') }}
29- restore-keys : |
30- ${{ runner.os }}-pip-
31-
32-
3321 # Install Pandoc using apt-get
34- - name : Install Pandoc
35- run : |
22+ - run : |
3623 sudo apt-get update
3724 sudo apt-get install -y pandoc
3825
3926 # Install Python dependencies and build the HTML documentation
40- - name : Install dependencies
41- run : |
27+ - run : |
4228 python -m venv venv
4329 source venv/bin/activate
4430 pip install --upgrade pip
@@ -53,12 +39,12 @@ jobs:
5339 # Clone the html-en repository
5440 - run : cd ..
5541 - run : |
56- git clone https://${{ secrets.GITHUB_TOKEN }}@ github.com/openmlsys/html-en.git
42+ git clone https://github.com/openmlsys/html-en.git
5743 - run : cp -r _build/html/* html-en/
5844 - run : |
5945 cd html-en
6046 git add .
6147 git config user.name "Chivier"
6248 git config user.email "[email protected] " 6349 git commit -m 'update docs'
64- git push -u https://${{ secrets.GITHUB_TOKEN }}@ github.com/openmlsys/html-en.git main
50+ git push -u https://github.com/openmlsys/html-en.git main
0 commit comments