Skip to content

Commit c01d78e

Browse files
author
Dionysios Grapsas
committed
trying to fix deploy preview fail
1 parent 6d14f4e commit c01d78e

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/workflows/docs_preview.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,14 @@ jobs:
3636
source-dir: docs/_build/html
3737
preview-branch: gh-pages
3838
custom-url: fortls.fortran-lang.org
39+
- name: Setup Git
40+
run: |
41+
git config user.name "github-actions[bot]"
42+
git config user.email "github-actions[bot]@users.noreply.github.com"
43+
- name: Build and Deploy
44+
run: |
45+
# Commands to build and deploy documentation
46+
git checkout -b gh-pages
47+
git add -A
48+
git commit -m "Deploy preview for PR ${GITHUB_REF##*/} 🛫"
49+
git push --force origin gh-pages

0 commit comments

Comments
 (0)