From f23668d7c5478ce9617ab003dc8c1b815139e4d9 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 29 Jul 2024 16:47:35 +0900 Subject: [PATCH] wip --- .github/workflows/pages.yml | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 .github/workflows/pages.yml diff --git a/.github/workflows/pages.yml b/.github/workflows/pages.yml new file mode 100644 index 00000000..32f730df --- /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 + - name: Setup git config + run: | + git config user.name bot + git config user.email "<>" + - uses: actions/checkout@v4 + - 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