Skip to content

Commit

Permalink
feat: add gh workflow.
Browse files Browse the repository at this point in the history
  • Loading branch information
n1k0 committed Sep 3, 2024
1 parent f03a5db commit 9d744cf
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
26 changes: 26 additions & 0 deletions .github/workflows/mdbook.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
name: Build, test and deploy mdbook tech docs

on:
# SWITCH TO [ master ] FOR push ONLY BEFORE LANDING
push:
branches: [ "*" ]
pull_request:
branches: [ "*" ]

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write # To push a branch
pull-requests: write # To create a PR from that branch
steps:
- uses: actions/checkout@v4
- uses: actions-rs/toolchain@v1
with:
toolchain: stable
- run: (test -x $HOME/.cargo/bin/mdbook || cargo install mdbook)
- run: mdbook build tech-docs && mdbook test tech-docs
- uses: JamesIves/[email protected]
with:
branch: gh-pages # The branch the action should deploy to.
folder: tech-docs # The folder the action should deploy.
2 changes: 1 addition & 1 deletion tech-docs/src/chapter_1.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
# Ecobalyse — Documentation technique

This is cool.
This is a test, don't panic.

0 comments on commit 9d744cf

Please sign in to comment.