Skip to content

[PromptFlow] Fix can't raise exception in processpool's run. (#1237) #1

[PromptFlow] Fix can't raise exception in processpool's run. (#1237)

[PromptFlow] Fix can't raise exception in processpool's run. (#1237) #1

Workflow file for this run

name: Publish Promptflow Doc
on:
workflow_dispatch:
push:
branches:
- main
- preview/docs
paths:
- 'README.md'
- 'docs/**'
- 'scripts/docs/**'
- '.github/workflows/publish_doc.yml'
- 'src/promptflow/promptflow/**'
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
env:
packageSetupType: promptflow_with_extra
testWorkingDirectory: ${{ github.workspace }}/src/promptflow
jobs:
build:
runs-on: windows-latest
name: Build
steps:
- name: Checkout Repo
uses: actions/checkout@v2
with:
submodules: true
- name: Python Setup
uses: "./.github/actions/step_create_python_environment"
- name: Dev setup
uses: "./.github/actions/step_sdk_setup"
with:
setupType: ${{ env.packageSetupType }}
scriptPath: ${{ env.testWorkingDirectory }}
- name: Build Doc
shell: powershell
working-directory: scripts/docs/
run: |-
pip install langchain
./doc_generation.ps1 -WithReferenceDoc:$true
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: scripts/docs/_build
deploy:
runs-on: ubuntu-latest
name: Deploy
needs: build
permissions:
pages: write
id-token: write
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1