File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -10,20 +10,27 @@ jobs:
1010 runs-on : ubuntu-latest
1111
1212 steps :
13- # Inject PAT for private submodules
13+ # Inject classic PAT for private submodules
1414 - name : Configure Git for private submodules
1515 run : |
1616 git config --global url."https://${{ secrets.HORSEL_ACCESS }}:@github.com/".insteadOf "https://github.com/"
1717
18- # Checkout repository and all submodules
18+ # Checkout repository without auto submodule update
1919 - name : Checkout repository
2020 uses : actions/checkout@v3
2121 with :
22- submodules : recursive
22+ fetch-depth : 0
23+ submodules : false
24+
25+ # Manually update submodules using PAT
26+ - name : Update submodules
27+ run : |
28+ git submodule sync --recursive
29+ git submodule update --init --recursive
2330
2431 # Deploy to GitHub Pages
2532 - name : Deploy to GitHub Pages
2633 uses : peaceiris/actions-gh-pages@v4
2734 with :
2835 github_token : ${{ secrets.GITHUB_TOKEN }}
29- publish_dir : ./
36+ publish_dir : ./ # adjust if your site is in ./docs or ./build
You can’t perform that action at this time.
0 commit comments