nodejs-hands-on/.github/workflows/github-pages.yml
renovate[bot] 60106d6f3b
Update all dependencies (#4)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2023-11-08 14:00:24 +09:00

28 lines
681 B
YAML

name: github-pages
on:
push:
branches: [main]
jobs:
main:
permissions:
pages: write
id-token: write
environment: github-pages
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: Homebrew/actions/setup-homebrew@master
- id: brew_cache
run: echo "::set-output name=dir::$(brew --cache)"
- uses: actions/cache@v3
with:
path: ${{ steps.brew_cache.outputs.dir }}
key: brew-v3
- name: Build
run: |
brew bundle
mdbook build
- uses: actions/upload-pages-artifact@v2
with:
path: book
- uses: actions/deploy-pages@v2