diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 460a626..57f85e6 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -2,13 +2,25 @@ name: Deploy Wiki on: push: branches: [main] +permissions: + contents: write jobs: deploy: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - - uses: actions/setup-python@v5 + with: + persist-credentials: false + + - name: Setup Python + uses: actions/setup-python@v5 with: python-version: 3.x - - run: pip install mkdocs-material - - run: mkdocs gh-deploy --force \ No newline at end of file + + - name: Install dependencies + run: pip install mkdocs-material + + - name: Deploy to GitHub Pages + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + run: mkdocs gh-deploy --force