LukeCarrier / mkdocs-drawio-exporter

Exports your Draw.io diagrams at build time for easier embedding into your documentation
https://pypi.org/project/mkdocs-drawio-exporter/
MIT License
77 stars 8 forks source link

Github Actions #32

Closed brunopenso closed 2 years ago

brunopenso commented 2 years ago

Hello everyone if you are here with some kind of difficult to use and make it work here is the github actions file working perfect well.

name: ci 
on:
  push:
    branches:
      - main
    paths-ignore:
      - "README.md"
jobs:
  deploy:
    runs-on: ubuntu-latest
    steps:
      - uses: actions/checkout@v2
      - uses: actions/setup-python@v2
        with:
          python-version: 3.x
      - run: sudo apt-get install -y libasound2 xvfb
      - run: pip install mkdocs-material 
      - run: pip install mkdocs-drawio-exporter
      - name: Install drawio
        run: |
          wget https://github.com/jgraph/drawio-desktop/releases/download/v18.1.3/drawio-amd64-18.1.3.deb
          sudo dpkg -i drawio-amd64-18.1.3.deb
      - run: xvfb-run -a mkdocs gh-deploy --force

Thanks @LukeCarrier for yout extension/plugin

LukeCarrier commented 2 years ago

Hey @brunopenso, I'm going to document a recommended workflow in #33 since this has come up a few times recently.

Thanks for sharing!