diff --git a/.github/workflows/v3-docs.yml b/.github/workflows/v3-docs.yml index 1e12483ba..8827840ce 100644 --- a/.github/workflows/v3-docs.yml +++ b/.github/workflows/v3-docs.yml @@ -1,16 +1,15 @@ -name: v3 docs +name: ci on: push: branches: - - v3-alpha + - master + - main permissions: contents: write jobs: deploy: runs-on: ubuntu-latest - defaults: - run: - working-directory: ./mkdocs-website + if: github.event.repository.fork == false steps: - uses: actions/checkout@v3 - uses: actions/setup-python@v4 @@ -23,6 +22,8 @@ jobs: path: .cache restore-keys: | mkdocs-material- - - run: pip install -r requirements.insiders.txt + - run: apt-get install pngquant - run: pip install git+https://${GH_TOKEN}@github.com/squidfunk/mkdocs-material-insiders.git - run: mkdocs gh-deploy --force +env: + GH_TOKEN: ${{ secrets.GH_TOKEN }}