Skip to content

Bump actions/upload-pages-artifact from 1 to 2 #15

Bump actions/upload-pages-artifact from 1 to 2

Bump actions/upload-pages-artifact from 1 to 2 #15

Workflow file for this run

name: Deploy
on:
workflow_dispatch:
push:
branches:
- main
paths:
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
pull_request:
paths:
- 'docs/**'
- 'theme/**'
- book.toml
- .github/workflows/docs.yaml
permissions:
pages: write
id-token: write
jobs:
build-doc:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup mdBook
uses: peaceiris/actions-mdbook@v1
with:
mdbook-version: 'latest'
- name: Build
run: mdbook build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v2
with:
# Upload entire repository
path: "./book"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2
if: github.event_name != 'pull_request'