-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Github workflow to fido-device-onboard documentation (#60)
* GitHub Pages workflow Signed-off-by: B, Prashanth Natraj <[email protected]>
- Loading branch information
Showing
1 changed file
with
32 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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' }} |