Skip to content

Commit

Permalink
Merge pull request #56 from ODAncona/main
Browse files Browse the repository at this point in the history
Documentation Deployment for code2prompt
  • Loading branch information
ODAncona authored Feb 9, 2025
2 parents 4de0b86 + 97964fe commit a8aa81f
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions .github/workflows/deploy-mdbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
name: Deploy mdBook to GitHub Pages

on:
push:
branches:
- main

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v3

- name: Install mdBook
run: cargo install mdbook

- name: Build the mdBook
working-directory: ./docs
run: mdbook build

- name: Deploy to GitHub Pages
uses: peaceiris/actions-gh-pages@v3
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./docs/book
publish_branch: gh-pages

0 comments on commit a8aa81f

Please sign in to comment.