nodejs-hands-on/.github/workflows/github-pages.yml

29 lines
681 B
YAML
Raw Normal View History

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:
- uses: actions/checkout@v4
- 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)"
- 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
- uses: actions/upload-pages-artifact@v3
2022-08-01 18:00:32 +09:00
with:
path: book
- uses: actions/deploy-pages@v4