diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 0295b02..c29ad7b 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -1,22 +1,25 @@ name: Deploy docs on: -push: -branches: [ main ] -workflow_dispatch: + push: + branches: [ web ] + workflow_dispatch: + +permissions: + contents: write # required for actions-gh-pages to push to gh-pages jobs: -build-deploy: -runs-on: ubuntu-latest -steps: -- uses: actions/checkout@v4 -- uses: actions/setup-python@v5 -with: -python-version: "3.x" -- run: pip install -r requirements.txt -- run: mkdocs build --strict -- name: Deploy to GitHub Pages -uses: peaceiris/actions-gh-pages@v3 -with: -github_token: ${{ secrets.GITHUB_TOKEN }} -publish_dir: ./site \ No newline at end of file + build-deploy: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + - uses: actions/setup-python@v5 + with: + python-version: "3.x" + - run: pip install -r requirements.txt + - run: mkdocs build --strict + - name: Deploy to GitHub Pages + uses: peaceiris/actions-gh-pages@v3 + with: + github_token: ${{ secrets.GITHUB_TOKEN }} + publish_dir: ./site