prep for publishing latest docs from 2.x branch
Signed-off-by: Karl W. Schulz <karl.schulz@amd.com>
[ROCm/rocprofiler-compute commit: dce0a3c3a7]
This commit is contained in:
committed by
Karl W. Schulz
parent
502ad573b9
commit
bce9ffd224
@@ -2,7 +2,7 @@ name: Documentation
|
|||||||
|
|
||||||
on:
|
on:
|
||||||
push:
|
push:
|
||||||
branches: ["docpub"]
|
branches: ["2.x"]
|
||||||
paths:
|
paths:
|
||||||
- 'src/docs-2.x'
|
- 'src/docs-2.x'
|
||||||
- 'src/docs-1.x'
|
- 'src/docs-1.x'
|
||||||
|
|||||||
@@ -1,56 +0,0 @@
|
|||||||
name: Documentation
|
|
||||||
|
|
||||||
on:
|
|
||||||
push:
|
|
||||||
branches: ["main"]
|
|
||||||
paths:
|
|
||||||
- 'src/docs'
|
|
||||||
- '.github/workflows/docs.yml'
|
|
||||||
- 'VERSION'
|
|
||||||
|
|
||||||
workflow_dispatch:
|
|
||||||
|
|
||||||
permissions:
|
|
||||||
contents: read
|
|
||||||
pages: write
|
|
||||||
id-token: write
|
|
||||||
|
|
||||||
concurrency:
|
|
||||||
group: "pages"
|
|
||||||
cancel-in-progress: true
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
# Build job
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
container:
|
|
||||||
image: sphinxdoc/sphinx
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
- name: Additional python packages
|
|
||||||
run: pip3 install recommonmark myst_parser sphinx_rtd_theme
|
|
||||||
- name: Setup Pages
|
|
||||||
uses: actions/configure-pages@v2
|
|
||||||
- name: Build html
|
|
||||||
run: |
|
|
||||||
cd src/docs
|
|
||||||
make html
|
|
||||||
- name: Upload artifact
|
|
||||||
uses: actions/upload-pages-artifact@v1
|
|
||||||
with:
|
|
||||||
path: ./src/docs/_build/html
|
|
||||||
|
|
||||||
# Deployment job
|
|
||||||
deploy:
|
|
||||||
environment:
|
|
||||||
name: github-pages
|
|
||||||
url: ${{ steps.deployment.outputs.page_url }}
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
needs: build
|
|
||||||
steps:
|
|
||||||
- name: Deploy to GitHub Pages
|
|
||||||
id: deployment
|
|
||||||
uses: actions/deploy-pages@v1
|
|
||||||
|
|
||||||
Reference in New Issue
Block a user