From 71409cc3385dd6c5d09fc863b59c10b4d28cef38 Mon Sep 17 00:00:00 2001 From: Kohei Watanabe Date: Mon, 29 Jul 2024 16:51:05 +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..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