Skip to content

Commit

Permalink
Github workflow to fido-device-onboard documentation (#60)
Browse files Browse the repository at this point in the history
* GitHub Pages workflow

Signed-off-by: B, Prashanth Natraj <[email protected]>
  • Loading branch information
bprashan authored Sep 22, 2023
1 parent bab9693 commit 08b3b27
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
name: FIDO-documentation build
on:
workflow_dispatch:
push:
branches: master
pull_request:
branches: [master, '*rel']
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: scm checkout
uses: actions/checkout@v3
- name: setup-python
uses: actions/setup-python@v4
with:
python-version: '3.x'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install mkdocs-material mike
- name: build
run: mkdocs build
if: github.event_name == 'pull_request'
- name: deploy
run: |
git config remote.origin.fetch '+refs/heads/*:refs/remotes/origin/*'
git fetch --all
git config user.name sdo-automation
git config user.email [email protected]
mike deploy latest -b gh-pages-multi -p
if: ${{ github.event_name == 'push' && github.ref == 'refs/heads/master' }}

0 comments on commit 08b3b27

Please sign in to comment.