Update GitHub Actions workflow to use latest action versions and Pyth… #89
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 document | |
| on: | |
| push: | |
| branches: | |
| - rewrite | |
| jobs: | |
| build: | |
| name: Deploy document | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v5 | |
| - name: Set up Python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: '3.13' | |
| - name: Build documentation | |
| run: | | |
| pip3 install -U .[docs] | |
| pdoc --html --config show_source_code=False --force voicevox | |
| - name: Upload artifact | |
| uses: actions/upload-pages-artifact@v4 | |
| id: deployment | |
| with: | |
| path: ./html/voicevox | |
| deploy: | |
| environment: | |
| name: github-pages | |
| url: ${{ steps.deployment.outputs.page_url }} | |
| permissions: | |
| pages: write | |
| id-token: write | |
| runs-on: ubuntu-latest | |
| needs: build | |
| steps: | |
| - name: Deploy to GitHub Pages | |
| id: deployment | |
| uses: actions/deploy-pages@v4 |