Reorganizing docs runner and setting archive subdir for old docs

Signed-off-by: coleramos425 <colramos@amd.com>
This commit is contained in:
coleramos425 authored and Cole Ramos committed 2024-04-01 14:30:21 -05:00
1 والد 9c93449cc7
کامیت aac471c0fa
175 files changed
+8 -8

No files matched your search

@@ -5,8 +5,8 @@ on:
branches: ["main"]
paths:
- 'src/docs-2.x'
- 'src/docs-1.x'
- '.github/workflows/docs-2.x.yml'
- 'src/archive/docs-1.x'
- '.github/workflows/docs.yml'
- 'VERSION'
workflow_dispatch:
@@ -36,19 +36,19 @@ jobs:
uses: actions/configure-pages@v4
- name: Build 1.x docs
run: |
cd src/docs-1.x
cd src/archive/docs-1.x
make html
- name: Build 2.x docs
- name: Build current docs
run: |
cd src/docs-2.x
cd src/docs
make html
- name: Relocate 2.x docs
- name: Relocate 1.x docs
run: |
mv src/docs-2.x/_build/html src/docs-1.x/_build/html/2.x
mv src/archive/docs-1.x/_build/html src/docs/_build/html/1.x
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
path: ./src/docs-1.x/_build/html
path: ./src/docs/_build/html
# Deployment job
deploy:
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loaded 100 of 175 files, more files were not shown because too many files have changed in this diff. Show more