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

32 lines
792 B
YAML
Raw Normal View History

2022-02-24 17:06:32 +09:00
name: github-pages
on:
workflow_run:
branches: [main]
workflows: [test]
types: [completed]
jobs:
main:
2022-02-24 17:51:47 +09:00
if: github.event.workflow_run.conclusion == 'success'
2022-08-01 18:00:33 +09:00
permissions:
pages: write
id-token: write
environment: github-pages
2022-02-24 17:06:32 +09:00
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: Homebrew/actions/setup-homebrew@master
2022-02-24 17:06:32 +09:00
- id: brew_cache
run: echo "::set-output name=dir::$(brew --cache)"
- uses: actions/cache@v3
2022-02-24 17:06:32 +09:00
with:
path: ${{ steps.brew_cache.outputs.dir }}
2022-08-01 17:48:16 +09:00
key: brew-v3
2022-02-24 17:06:32 +09:00
- name: Build
run: |
brew bundle
mdbook build
2023-08-01 03:50:36 +00:00
- uses: actions/upload-pages-artifact@v2
2022-08-01 18:00:33 +09:00
with:
path: book
- uses: actions/deploy-pages@v2