Skip to content

Commit 5ce9d5a

Browse files
authored
Update for classic token
1 parent 2cbac54 commit 5ce9d5a

1 file changed

Lines changed: 11 additions & 4 deletions

File tree

.github/workflows/pages-deploy.yml

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff 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

0 commit comments

Comments
 (0)