Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[GHA] Upload an artifact of the converted tutorials for testing #3303

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
49 changes: 49 additions & 0 deletions .github/workflows/publish_website_testing.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: Publish Website

on:
pull_request:
branches: [ main ]



jobs:

build-website:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v4
with:
ref: 'docusaurus-versions' # release branch
fetch-depth: 0
- name: Sync release branch with main
run: |
git config --global user.name "github-actions[bot]"
git config --global user.email "41898282+github-actions[bot]@users.noreply.github.com"
git merge origin/main
# To avoid a large number of commits we don't push this sync commit to github until a new release.
- name: Set up Python
uses: actions/setup-python@v5
with:
python-version: "3.12"
- name: Install dependencies
run: |
pip install -e ".[tutorial]"
- if: ${{ inputs.run_tutorials }}
name: Run Tutorials
run: |
python scripts/run_tutorials.py -w $(pwd)
- name: Build tutorials
# the converted tutorials are failing to build in CI but not locally,
# here we upload the converted tutorials to see what's going on.
run: |
python3 scripts/convert_ipynb_to_mdx.py --clean
- name: Upload tutorials as artifact
uses: actions/upload-artifact@v4
with:
name: tutorials
path: docs/tutorials/
- name: Build website
run: |
bash scripts/make_docs.sh -b
Loading