Skip to content

Commit

Permalink
Add docs workflow (#179)
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmbmb authored Dec 21, 2023
1 parent 2d6a9a9 commit 9d099d1
Show file tree
Hide file tree
Showing 2 changed files with 25 additions and 1 deletion.
24 changes: 24 additions & 0 deletions .github/workflows/docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Publish documentation

on:
push:
branches:
- main
- gh-pages
tags:
- "**"

jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Set git credentials
run: |
git config --global user.name "${{ github.actor }}"
git config --global user.name "${{ github.actor }}@users.noreply.github.com"
- run: mike deploy dev --push
if: github.ref == 'refs/heads/main'

- run: mike deploy latest ${{ github.ref_name }} --push
if: startsWith(github.ref, 'refs/tags/')
2 changes: 1 addition & 1 deletion mkdocs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ extra_css:
theme:
name: material
logo: assets/logo.svg
favicon: assets/distilabel-icon.svg
favicon: assets/logo.svg
features:
- navigation.instant
- navigation.tabs
Expand Down

0 comments on commit 9d099d1

Please sign in to comment.