diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..e9c2bda6 --- /dev/null +++ b/.github/workflows/pages.yml @@ -0,0 +1,23 @@ +name: pages +on: push +jobs: + build: + runs-on: ubuntu-latest + container: alpine + steps: + - name: Setup + run: apk add mdbook git + - uses: actions/checkout@v4 + - name: Setup git config + run: | + git config --global user.name bot + git config --global user.email "<>" + - name: Build + run: | + cd pizero + mdbook build + - name: Commit + run: | + if git commit -am 'bot: update pages'; then + git push origin HEAD:"${{ github.ref }}" + fi