Merge pull request #9 from ColibrITD-SAS/dev #21
This file contains 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 | ||
on: | ||
pull_request: | ||
branches: | ||
- main | ||
push: | ||
branches: | ||
- main | ||
jobs: | ||
build_publish_docs: | ||
# Deploy to cloudflare | ||
runs-on: ubuntu-latest | ||
needs: build_publish_package | ||
steps: | ||
- name: Checkout | ||
uses: actions/checkout@v4 | ||
- name: Build Document | ||
run: | | ||
pip install -r requirements-dev.txt | ||
sphinx-build -b html docs build | ||
- name: Publish | ||
uses: cloudflare/pages-action@1 | ||
with: | ||
apiToken: ${{ secrets.PRD_CLOUDFLARE_API_TOKEN }} | ||
accountId: ${{ secrets.PRD_CLOUDFLARE_ACCOUNT_ID }} | ||
projectName: mpqp | ||
directory: build |