diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..ba60ba65 --- /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 user.name bot + git config 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