-
Notifications
You must be signed in to change notification settings - Fork 0
30 lines (26 loc) · 1.08 KB
/
pages-deploy.yml
File metadata and controls
30 lines (26 loc) · 1.08 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
name: Deploy GitHub Pages with private submodule
on:
push:
branches:
- main # run workflow on pushes to main
workflow_dispatch:
jobs:
build-and-deploy:
runs-on: ubuntu-latest
steps:
# Checkout repo + private submodules
- name: Checkout repository with private submodules
uses: actions/checkout@v3
with:
submodules: recursive # fetch all submodules
token: ${{ secrets.HORSEL_ACCESS }} # PAT with read access to private submodules
fetch-depth: 0 # full history
# Deploy site to gh-pages
- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }} # auto-provided by GitHub
publish_dir: ./ # folder containing site + submodules
publish_branch: gh-pages # branch for Pages deployment
force_orphan: true # overwrite gh-pages completely
commit_message: "Deploy site via GitHub Actions"