CIテスト用にテスト仕様変更 #18
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| name: Deploy Docs | |
| on: | |
| push: | |
| branches: [main] | |
| workflow_dispatch: {} | |
| jobs: | |
| deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v4 | |
| - uses: actions/setup-python@v5 | |
| with: | |
| python-version: "3.11" | |
| - name: Install dependencies | |
| run: | | |
| pip install --upgrade pip | |
| pip install mkdocs-material | |
| - name: Build and deploy | |
| run: | | |
| mkdocs gh-deploy --force | |
| permissions: | |
| contents: write # gh-pages への push に必要 | |
| pages: write # (Actions から Pages を使う場合は念のため) | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} # mkdocs gh-deploy が参照 |