Skip to content

Commit

Permalink
create update docs job
Browse files Browse the repository at this point in the history
creates a github action job to update the private documentation about maestro
  • Loading branch information
manuellysuzik authored Aug 4, 2023
1 parent 28d765f commit cf391f9
Showing 1 changed file with 18 additions and 1 deletion.
19 changes: 18 additions & 1 deletion .github/workflows/mkdocs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -25,4 +25,21 @@ jobs:
- run: pip install mkdocs-mermaid2-plugin
- run: git config user.name 'github-actions[bot]' && git config user.email 'github-actions[bot]@users.noreply.github.com'
- name: Publish docs
run: mkdocs gh-deploy --force
run: mkdocs gh-deploy --force

update-docs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
with:
fetch-depth: 0
env:
token: ${{ secrets.GITLAB_DOCS_TOKEN }}

- name: Update Gitlab Documentation
run: |
echo Starting to push documentation changes to gitlab
git config user.name ${{ secrets.GITLAB_USER }}
git config user.email ${{ secrets.GITLAB_EMAIL }}
git remote set-url origin ${{ secrets.GITLAB_DOC_URL }}
git push origin main

0 comments on commit cf391f9

Please sign in to comment.