blender-geometry-script/.github/workflows/github_pages.yml

38 wiersze
847 B
YAML
Czysty Zwykły widok Historia

2022-11-15 18:05:50 +00:00
name: github pages
on:
push:
branches:
- main
pull_request:
2022-12-09 21:02:30 +00:00
concurrency: preview-${{ github.ref }}
2022-11-15 18:05:50 +00:00
jobs:
deploy:
runs-on: ubuntu-20.04
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v2
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- run: mdbook build
2022-11-15 18:10:31 +00:00
working-directory: book
2022-11-15 18:05:50 +00:00
- name: Deploy
uses: peaceiris/actions-gh-pages@v3
if: ${{ github.ref == 'refs/heads/main' }}
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./book/book
2022-12-09 21:02:30 +00:00
- name: Deploy preview
uses: rossjrw/pr-preview-action@v1
if: ${{ github.ref != 'refs/heads/main' }}
with:
source-dir: ./book/book