mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
The new images published in servo/ci-runners#12 should have `uv` installed already and the initial build of servo triggered during the base image construction will force the installation of the Python version mentioned at the time of the image construction (3.12). When .python-version changes, we can no longer use the .venv baked into the image and must recreate the it to avoid activating the environment. Signed-off-by: Mukilan Thiyagarajan <mukilan@igalia.com>
39 lines
1.2 KiB
YAML
39 lines
1.2 KiB
YAML
name: Docs upload
|
|
|
|
on:
|
|
push:
|
|
branches: ["main"]
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
upload-docs:
|
|
# This job is only useful when run on upstream servo.
|
|
if: github.repository == 'servo/servo' || github.event_name == 'workflow_dispatch'
|
|
name: Upload docs to GitHub Pages
|
|
runs-on: ubuntu-22.04
|
|
steps:
|
|
- uses: actions/checkout@v4
|
|
- name: Setup Python
|
|
uses: ./.github/actions/setup-python
|
|
- name: Bootstrap
|
|
run: |
|
|
sudo apt update
|
|
./mach bootstrap --skip-lints
|
|
- name: Set LIBCLANG_PATH # This is needed for bindgen in mozangle.
|
|
run: echo "LIBCLANG_PATH=/usr/lib/llvm-14/lib" >> $GITHUB_ENV
|
|
- name: Compile docs
|
|
run: ./mach doc
|
|
env:
|
|
RUSTDOCFLAGS: --document-private-items
|
|
- name: Upload docs
|
|
run: |
|
|
cd target/doc
|
|
git config --global init.defaultBranch main
|
|
git init
|
|
git add .
|
|
git -c user.name="Workflow" -c user.email="" \
|
|
commit -q -m "Rebuild Servo documentation"
|
|
git remote add origin https://git:${DOC_SERVO_ORG}@github.com/servo/doc.servo.org
|
|
git push --force origin main:gh-pages
|
|
env:
|
|
DOC_SERVO_ORG: ${{ secrets.DOC_SERVO_ORG }}
|