2022-05-11 19:03:56 +09:00
|
|
|
name: github-pages
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches: [main]
|
|
|
|
jobs:
|
|
|
|
main:
|
2022-08-01 18:00:32 +09:00
|
|
|
permissions:
|
|
|
|
pages: write
|
|
|
|
id-token: write
|
|
|
|
environment: github-pages
|
2022-05-11 19:03:56 +09:00
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2023-11-08 14:00:24 +09:00
|
|
|
- uses: actions/checkout@v4
|
2022-10-01 11:41:32 +09:00
|
|
|
- uses: Homebrew/actions/setup-homebrew@master
|
2022-05-11 19:03:56 +09:00
|
|
|
- id: brew_cache
|
|
|
|
run: echo "::set-output name=dir::$(brew --cache)"
|
2024-02-01 09:49:51 +09:00
|
|
|
- uses: actions/cache@v4
|
2022-05-11 19:03:56 +09:00
|
|
|
with:
|
|
|
|
path: ${{ steps.brew_cache.outputs.dir }}
|
|
|
|
key: brew-v3
|
|
|
|
- name: Build
|
|
|
|
run: |
|
|
|
|
brew bundle
|
|
|
|
mdbook build
|
2024-01-01 16:46:56 +09:00
|
|
|
- uses: actions/upload-pages-artifact@v3
|
2022-08-01 18:00:32 +09:00
|
|
|
with:
|
|
|
|
path: book
|
2024-01-01 16:46:56 +09:00
|
|
|
- uses: actions/deploy-pages@v4
|