Skip to content

Merge branch 'microsoft:main' into main #2

Merge branch 'microsoft:main' into main

Merge branch 'microsoft:main' into main #2

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: Conda Setup
uses: "./.github/actions/step_create_conda_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