Pi Zero 版のダウンロードリンクの追加・Raspberry Pi Imagerを使用する方法を追加 #40
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: 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 --add safe.directory "${GITHUB_WORKSPACE}" | |
git config user.name bot | |
git config user.email "<>" | |
- name: Build | |
run: | | |
cd pizero | |
mdbook build | |
- name: Commit | |
run: | | |
git add -f _pages | |
if git commit -m 'bot: update pages'; then | |
git push origin HEAD:"${{ github.ref }}" | |
fi |