2023-05-25 10:52:29 +01:00
|
|
|
name: Azure Static Web Apps CI/CD
|
|
|
|
|
|
|
|
|
|
pr: none
|
|
|
|
|
trigger:
|
|
|
|
|
branches:
|
|
|
|
|
include:
|
|
|
|
|
- dev
|
|
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
|
- job: build_and_deploy_job
|
|
|
|
|
displayName: Build and Deploy Job
|
|
|
|
|
condition: or(eq(variables['Build.Reason'], 'Manual'),or(eq(variables['Build.Reason'], 'PullRequest'),eq(variables['Build.Reason'], 'IndividualCI')))
|
|
|
|
|
pool:
|
|
|
|
|
vmImage: ubuntu-latest
|
|
|
|
|
variables:
|
|
|
|
|
- group: Azure-Static-Web-Apps-nice-bay-0ad032c03-variable-group
|
|
|
|
|
steps:
|
|
|
|
|
- checkout: self
|
|
|
|
|
submodules: true
|
|
|
|
|
|
|
|
|
|
- script: |
|
|
|
|
|
python -m pip install --upgrade pip==23.0.1
|
|
|
|
|
pip install wheel==0.38.4 --upgrade
|
|
|
|
|
pip install setuptools==66 --upgrade
|
|
|
|
|
pip install build==0.10.0
|
|
|
|
|
displayName: 'Install build dependencies'
|
|
|
|
|
|
|
|
|
|
- script: |
|
2024-05-29 14:54:45 +01:00
|
|
|
pip install -e .[dev,rl]
|
2023-11-08 13:00:07 +00:00
|
|
|
displayName: 'Install PrimAITE for docs autosummary'
|
|
|
|
|
|
2024-05-16 10:55:17 +01:00
|
|
|
- script: |
|
2024-06-12 08:36:42 +01:00
|
|
|
sudo apt-get install pandoc
|
2024-05-16 10:55:17 +01:00
|
|
|
displayName: 'Install Pandoc'
|
|
|
|
|
|
2023-06-08 08:39:00 +01:00
|
|
|
- script: |
|
|
|
|
|
primaite setup
|
|
|
|
|
displayName: 'Perform PrimAITE Setup'
|
|
|
|
|
|
2023-05-25 10:52:29 +01:00
|
|
|
- script: |
|
|
|
|
|
cd docs
|
|
|
|
|
make html
|
|
|
|
|
cd ..
|
|
|
|
|
cd ..
|
|
|
|
|
displayName: 'Build Docs'
|
|
|
|
|
|
|
|
|
|
- task: AzureStaticWebApp@0
|
|
|
|
|
inputs:
|
|
|
|
|
azure_static_web_apps_api_token: $(AZURE_STATIC_WEB_APPS_API_TOKEN_NICE_BAY_0AD032C03)
|
|
|
|
|
app_location: "/docs/_build/html"
|
|
|
|
|
api_location: ""
|
|
|
|
|
output_location: "/"
|
|
|
|
|
displayName: 'Deploy Docs to nice-bay-0ad032c03'
|