system_replication: Document USB-based system replication #35
This file contains 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: "Publish Documentation" | |
on: | |
push: | |
branches: | |
- main | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/setup-python@v2 | |
- uses: actions/checkout@master | |
with: | |
fetch-depth: 0 # otherwise, you will failed to push refs to dest repo | |
- name: Build and Commit | |
uses: sphinx-notes/pages@v2 | |
with: | |
target_branch: 'gh-pages' | |
documentation_path: './docs/source' | |
- name: Preserve Configuration Files | |
run: | | |
echo "* @amstewart" > CODEOWNERS | |
git checkout gh-pages^ -- CNAME | |
- name: Create Pull Request | |
uses: peter-evans/create-pull-request@v4 | |
with: | |
token: ${{ secrets.GITHUB_TOKEN }} | |
base: 'gh-pages' | |
delete-branch: true | |
title: 'gh-pages updates from ${{ github.sha }}' | |
branch: 'dev/automated-updates-${{ github.sha }}' | |
body: 'Automated updates to published pages from ${{ github.sha }}' |