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

29 lines
767 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:
2023-09-04 12:36:32 +00:00
- uses: actions/checkout@3df4ab11eba7bda6032a0b82a6bb43b11571feac # 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)"
2022-06-01 01:11:07 +00:00
- uses: actions/cache@v3
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
2023-09-04 12:36:32 +00:00
- uses: actions/upload-pages-artifact@a753861a5debcf57bf8b404356158c8e1e33150c # v2
2022-08-01 18:00:32 +09:00
with:
path: book
- uses: actions/deploy-pages@v2