chore(docs): download github-pages artifacts instead of building them (#2149)

Way simpler than relying in the docs build action across repos
This commit is contained in:
Zeglius 2025-01-19 18:10:55 +01:00 committed by GitHub
parent 7097670087
commit 40bc1fba97
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -169,18 +169,17 @@ jobs:
uses: actions/checkout@v4
# Prepare offline documentation
- run: mkdir -p ${{ github.workspace }}/system_files/desktop/shared/usr/share/ublue-os/docs/html
- id: download_offline_docs
continue-on-error: true
- name: Checkout docs repo
run: rm -r ${{ github.workspace }}/docs && git clone https://github.com/KyleGospo/docs.bazzite.gg.git ${{ github.workspace }}/docs
continue-on-error: true
- name: Build offline documentation
uses: ./.github/workflows/build_mkdocs
continue-on-error: true
with:
github_token: ${{ github.token }}
output_dir: ${{ github.workspace }}/system_files/desktop/shared/usr/share/ublue-os/docs/html
upload_github_page: "false"
env:
docs_repo: KyleGospo/docs.bazzite.gg
run: |
DOCS_DIR="${{ github.workspace }}/system_files/desktop/shared/usr/share/ublue-os/docs/html"
mkdir -p $DOCS_DIR
cd $(mktemp -d)
gh run download --repo=$docs_repo -n github-pages
tar -xC "$DOCS_DIR" -f artifact.tar
rm $PWD
- name: Check just syntax
uses: ublue-os/just-action@v2