ci(release): quote Python version to fix YAML parsing - 3.10 being pa… #51
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: Build and publish doc | |
| on: | |
| push: | |
| branches: | |
| - main | |
| - test-doc | |
| permissions: | |
| contents: write | |
| jobs: | |
| build-and-deploy: | |
| runs-on: ubuntu-latest | |
| steps: | |
| - name: Checkout 🛎️ | |
| uses: actions/checkout@v4 | |
| - name: Python 3.8.15 ✅ | |
| id: setup-python | |
| uses: actions/setup-python@v4 | |
| with: | |
| python-version: 3.8.15 | |
| - name: Poetry ✅ | |
| run: | | |
| python -m pip install --upgrade pip | |
| pip install poetry && poetry install | |
| - name: Install dependencies ✅ | |
| run: | | |
| poetry install --no-interaction --no-root | |
| - name: Build Doc ✅ | |
| run: | | |
| poetry run pdoc -o build pdf2dcm | |
| - name: Deploy 🚀 | |
| uses: JamesIves/github-pages-deploy-action@v4 | |
| with: | |
| folder: build | |
| token: ${{ secrets.GH_TOKEN }} |