Skip to content

Commit 1c90b10

Browse files
author
Dionysios Grapsas
committed
reverting
1 parent 6d14f4e commit 1c90b10

File tree

1 file changed

+15
-1
lines changed

1 file changed

+15
-1
lines changed

.github/workflows/docs_preview.yml

Lines changed: 15 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,13 +19,16 @@ on:
1919
concurrency: preview-${{github.ref}}
2020

2121
jobs:
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]
@@ -36,3 +39,14 @@ jobs:
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

0 commit comments

Comments
 (0)