Skip to content

Publish pulpproject.org #36

Publish pulpproject.org

Publish pulpproject.org #36

Workflow file for this run

---
name: "Publish pulpproject.org"
on:
schedule:
- cron: "00 3 * * 1-5"
workflow_dispatch:
defaults:
run:
working-directory: "pulpcore"
jobs:
build-docs:
runs-on: "ubuntu-latest"
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 0
path: "pulpcore"
- uses: "actions/setup-python@v5"
with:
python-version: "3.11"
- name: "Build HTML site for pulpproject.org."
run: |
.github/workflows/scripts/build_all_docs.sh
- name: "Upload documentation site"
uses: "actions/upload-artifact@v4"
with:
name: "pulpproject.org.tar"
path: "pulpcore/pulpproject.org.tar"
if-no-files-found: "error"
publish-docs:
runs-on: "ubuntu-latest"
needs:
- "build-docs"
env:
GITHUB_TOKEN: "${{ secrets.GITHUB_TOKEN }}"
steps:
- uses: "actions/checkout@v4"
with:
fetch-depth: 1
path: "pulpcore"
- uses: "actions/setup-python@v5"
with:
python-version: "3.11"
- name: "Setting secrets"
run: |
python3 .github/workflows/scripts/secrets.py "$SECRETS_CONTEXT"
env:
SECRETS_CONTEXT: "${{ toJson(secrets) }}"
- name: "Download built docs"
uses: "actions/download-artifact@v4"
with:
name: "pulpproject.org.tar"
path: "pulpcore/"
- name: "Publish docs to pulpproject.org"
run: |
.github/workflows/scripts/publish_all_docs.sh
...