Update pages-deploy.yml #13
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy GitHub Pages with private submodule | |
| on: | |
| push: | |
| branches: | |
| - main | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| # Checkout the repository and all submodules with PAT | |
| - name: Checkout repository with private submodules | |
| uses: actions/checkout@v3 | |
| with: | |
| submodules: recursive | |
| token: ${{ secrets.HORSEL_ACCESS }} | |
| fetch-depth: 0 | |
| # Deploy site to main branch | |
| - name: Deploy to GitHub Pages | |
| uses: peaceiris/actions-gh-pages@v4 | |
| with: | |
| github_token: ${{ secrets.GITHUB_TOKEN }} | |
| publish_dir: ./ # folder containing site + submodules | |
| publish_branch: main # deploy to main for user page / custom domain | |
| force_orphan: false # keeps branch history intact |