Skip to content

Commit

Permalink
+ doc build depend
Browse files Browse the repository at this point in the history
  • Loading branch information
oluceps committed Nov 24, 2024
1 parent ca3d833 commit 01d72ff
Showing 1 changed file with 20 additions and 1 deletion.
21 changes: 20 additions & 1 deletion .github/workflows/doc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ name: Docs

on:
push:
branches: ["main"]
branches: ["*"]
workflow_dispatch:

permissions:
Expand All @@ -16,6 +16,7 @@ concurrency:

jobs:
deploy:
if: github.ref == 'refs/heads/main'
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
Expand All @@ -42,3 +43,21 @@ jobs:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
build:
if: github.ref != 'refs/heads/main'
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- uses: actions/checkout@v4
with:
repository: 'myrrhlab/vaultix-mdbook-custom'
path: './theme'
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Install mdBook
run: |
cargo install mdbook --no-default-features --features search --vers "^0.4" --locked
- name: Build mdBook
run: |
mdbook build

0 comments on commit 01d72ff

Please sign in to comment.