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 19
19
concurrency : preview-${{github.ref}}
20
20
21
21
jobs :
22
+ job-name :
23
+ permissions :
24
+ contents : write
22
25
deploy-preview :
23
26
runs-on : ubuntu-latest
24
27
steps :
25
28
- uses : actions/checkout@v4
26
29
- uses : actions/setup-python@v5
27
30
with :
28
- python-version : " 3.11 "
31
+ python-version : " 3.12 "
29
32
- name : Build docs
30
33
run : |
31
34
pip install -e .[dev,docs]
36
39
source-dir : docs/_build/html
37
40
preview-branch : gh-pages
38
41
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