Update cds_api_tools.py #25
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: Deployment to GitHub Pages | |
on: | |
push: | |
branches: | |
- main* | |
permissions: | |
id-token: write | |
pages: write | |
jobs: | |
# Build the Sphinx documentation | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- uses: actions/setup-python@v3 | |
- name: Install Dependencies | |
run: | | |
pip install sphinx piccolo-theme myst_parser | |
- name: Sphinx Build | |
run: | | |
sphinx-build ./sphinx-docs/ build_outputs_folder | |
- name: Upload GitHub Pages artifact | |
uses: actions/upload-pages-artifact@v3 | |
id: deployment | |
with: | |
path: build_outputs_folder/ | |
# Deploy the Sphinx documentation to GitHub Pages | |
deploy: | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |