@@ -63,43 +63,43 @@ jobs:
63
63
uses : codecov/codecov-action@v1
64
64
with :
65
65
file : ./coverage.xml
66
- # sphinx:
67
- # # If the above worked:
68
- # # Build docs and upload to GH Pages
69
- # needs: unittest
70
- # runs-on: ubuntu-latest
71
- # steps:
72
- # - uses: actions/checkout@v2
73
- # - name: Set up Python 3.7
74
- # uses: actions/setup-python@v1
75
- # with:
76
- # python-version: 3.7
77
- # - name: Install dependencies
78
- # run: |
79
- # python -m pip install --upgrade pip
80
- # pip install -r .github/dev_requirements.txt
81
- # pip install .
82
- # - name: Build docs
83
- # run: |
84
- # cd docs
85
- # make html
86
- # # Tell GitHub not to use jekyll to compile the docs
87
- # touch build/html/.nojekyll
88
- # cd ../
89
- # - name: Commit documentation changes
90
- # run: |
91
- # git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages
92
- # cp -r docs/build/html/* gh-pages/
93
- # cd gh-pages
94
- # git config --local user.email "action@github.com"
95
- # git config --local user.name "GitHub Action"
96
- # git add .
97
- # git commit -m "Update documentation" -a || true
98
- # # The above command will fail if no changes were present, so we ignore
99
- # # that.
100
- # - name: Push changes
101
- # uses: ad-m/github-push-action@master
102
- # with:
103
- # branch: gh-pages
104
- # directory: gh-pages
105
- # github_token: ${{ secrets.GITHUB_TOKEN }}
66
+ sphinx :
67
+ # If the above worked:
68
+ # Build docs and upload to GH Pages
69
+ needs : unittest
70
+ runs-on : ubuntu-latest
71
+ steps :
72
+ - uses : actions/checkout@v2
73
+ - name : Set up Python 3.7
74
+ uses : actions/setup-python@v1
75
+ with :
76
+ python-version : 3.7
77
+ - name : Install dependencies
78
+ run : |
79
+ python -m pip install --upgrade pip
80
+ pip install -r .github/dev_requirements.txt
81
+ pip install .
82
+ - name : Build docs
83
+ run : |
84
+ cd docs
85
+ make html
86
+ # Tell GitHub not to use jekyll to compile the docs
87
+ touch build/html/.nojekyll
88
+ cd ../
89
+ - name : Commit documentation changes
90
+ run : |
91
+ git clone https://github.com/petercorke/spatialmath-python.git --branch gh-pages --single-branch gh-pages
92
+ cp -r docs/build/html/* gh-pages/
93
+ cd gh-pages
94
+ git config --local user.email "action@github.com"
95
+ git config --local user.name "GitHub Action"
96
+ git add .
97
+ git commit -m "Update documentation" -a || true
98
+ # The above command will fail if no changes were present, so we ignore
99
+ # that.
100
+ - name : Push changes
101
+ uses : ad-m/github-push-action@master
102
+ with :
103
+ branch : gh-pages
104
+ directory : gh-pages
105
+ github_token : ${{ secrets.GITHUB_TOKEN }}
0 commit comments