mirror of
https://github.com/ublue-os/bazzite.git
synced 2025-03-01 07:13:26 +00:00
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:
parent
7097670087
commit
40bc1fba97
21
.github/workflows/build.yml
vendored
21
.github/workflows/build.yml
vendored
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user