File tree Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Expand file tree Collapse file tree 1 file changed +15
-1
lines changed Original file line number Diff line number Diff line change 1919concurrency : preview-${{github.ref}}
2020
2121jobs :
22+ job-name :
23+ permissions :
24+ contents : write
2225 deploy-preview :
2326 runs-on : ubuntu-latest
2427 steps :
2528 - uses : actions/checkout@v4
2629 - uses : actions/setup-python@v5
2730 with :
28- python-version : " 3.11 "
31+ python-version : " 3.12 "
2932 - name : Build docs
3033 run : |
3134 pip install -e .[dev,docs]
3639 source-dir : docs/_build/html
3740 preview-branch : gh-pages
3841 custom-url : fortls.fortran-lang.org
42+ - name : Setup Git
43+ run : |
44+ git config user.name "github-actions[bot]"
45+ git config user.email "github-actions[bot]@users.noreply.github.com"
46+ - name : Build and Deploy
47+ run : |
48+ # Commands to build and deploy documentation
49+ git checkout -b gh-pages
50+ git add -A
51+ git commit -m "Deploy preview for PR ${GITHUB_REF##*/} 🛫"
52+ git push --force origin gh-pages
You can’t perform that action at this time.
0 commit comments