Skip to content

Commit

Permalink
Create gh-pages.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
0xb-s authored Nov 18, 2024
1 parent a23c071 commit b6e1f46
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/gh-pages.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: Deploy GitHub Pages

on:
push:
branches:
- main
pull_request:

jobs:
deploy:
runs-on: ubuntu-22.04
permissions:
contents: write
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
steps:
- uses: actions/checkout@v3


- name: Setup mdBook
run: |
wget https://github.com/rust-lang/mdBook/releases/download/v0.4.29/mdbook-v0.4.29-x86_64-unknown-linux-gnu.tar.gz -O - | tar -zx
chmod +x mdbook
- name: Build
run: ./mdbook build documentation

- name: Deploy
uses: peaceiris/actions-gh-pages@v4
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
publish_dir: ./documentation/book

0 comments on commit b6e1f46

Please sign in to comment.