From deb77af6131eb38c390bdb79f3136c05943d4502 Mon Sep 17 00:00:00 2001 From: locker98 Date: Mon, 25 Nov 2024 16:55:16 -0500 Subject: [PATCH] fixed github actions --- .github/workflows/ci.yml | 32 ++++++++++++++++++++------------ 1 file changed, 20 insertions(+), 12 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index d6fdcac..d74096a 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -1,20 +1,28 @@ -name: Publish docs via GitHub Pages +name: ci on: push: branches: + - master - main - +permissions: + contents: write jobs: - build: - name: Deploy docs + deploy: runs-on: ubuntu-latest steps: - - name: Checkout main - uses: actions/checkout@v2 - - - name: Deploy docs - uses: mhausenblas/mkdocs-deploy-gh-pages@master - # Or use mhausenblas/mkdocs-deploy-gh-pages@nomaterial to build without the mkdocs-material theme + - uses: actions/checkout@v3 + - uses: actions/setup-python@v4 + with: + python-version: 3.x + - uses: actions/cache@v2 + with: + key: ${{ github.ref }} + path: .cache + - run: pip install mkdocs-material + - run: pip install pillow cairosvg + - run: mkdocs gh-deploy --force + env: - CUSTOM_DOMAIN: ros.locker98.com - GITHUB_DOMAIN: ros.locker98.com + CUSTOM_DOMAIN: ros.locker98.com + GITHUB_DOMAIN: ros.locker98.com +