Skip to content

Commit 3b6727f

Browse files
authored
Update main.yml
1 parent b4a1530 commit 3b6727f

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

.github/workflows/main.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ name: Deploy MkDocs to GitHub Pages
22

33
on:
44
push:
5-
branches: [ main ] # Déclenche le workflow à chaque push sur la branche main
5+
branches: [ main ]
66

77
jobs:
88
deploy:
@@ -20,5 +20,11 @@ jobs:
2020
pip install mkdocs mkdocs-material
2121
2222
- name: Build and deploy
23+
env:
24+
GH_PAT: ${{ secrets.GH_PAT }}
2325
run: |
26+
git config --global user.name "github-actions[bot]"
27+
git config --global user.email "github-actions[bot]@users.noreply.github.com"
28+
remote_url="https://${GH_PAT}@github.com/QualCoder-Org/qualcoder-org.github.io.git"
29+
git remote set-url origin "$remote_url"
2430
mkdocs gh-deploy --force

0 commit comments

Comments
 (0)