From be6e761344cc17aa2c00ec5b413901586a50abb6 Mon Sep 17 00:00:00 2001 From: cibelinda <150722212+cibelinda@users.noreply.github.com> Date: Fri, 13 Dec 2024 11:17:16 -0300 Subject: [PATCH] Create workflow docs.yml pipeline do mkdocs --- .github/workflows/docs.yml | 45 ++++++++++++++++++++++++++++++++++++++ 1 file changed, 45 insertions(+) create mode 100644 .github/workflows/docs.yml diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml new file mode 100644 index 00000000..cbe26570 --- /dev/null +++ b/.github/workflows/docs.yml @@ -0,0 +1,45 @@ +name: Deploy Docs + +on: + push: + branches: + - main + paths: + - 'docs/**' + - 'mkdocs.yml' + +permissions: + contents: write + +jobs: + docs: + name: mkdocs deploy + runs-on: ubuntu-latest + strategy: + max-parallel: 4 + matrix: + python-version: ["3.11"] + + steps: + - name: Checkout code + uses: actions/checkout@v3 + + - name: Set up Python ${{ matrix.python-version }} + uses: actions/setup-python@v4 + with: + python-version: ${{ matrix.python-version }} + + - run: echo "cache_id=$(date --utc '+%V')" >> $GITHUB_ENV + + - name: Using cache to MkDocs + uses: actions/cache@v3 + with: + key: mkdocs-material-${{ env.cache_id }} + path: .cache + restore-keys: | + mkdocs-material- + + - run: pip install mkdocs-material + + - name: Deploy Docs + run: mkdocs gh-deploy --force