Add CI to automatically create new versioned docs

This commit is contained in:
Abin 2022-12-06 15:25:41 +05:30
parent 91ae48d2ab
commit 93b5f11f1c

View File

@ -150,6 +150,7 @@ jobs:
run: |
cd website &&
npm ci &&
npm run docusaurus docs:version "$CORSO_VERSION" &&
npm run build
- uses: actions/upload-artifact@master
@ -158,6 +159,16 @@ jobs:
name: website
path: website/build
- name: Create Pull Request for versioned docs
uses: peter-evans/create-pull-request@v4
if: startsWith(github.ref, 'refs/tags/')
with:
commit-message: Add new version to versioned docs
title: Add new version to versioned docs
body: Creates a new versioned set of docs for the latest release to `versioned_docs`.
branch: versioned-docs-update
add-paths: website
# ----------------------------------------------------------------------------------------------------
# --- Integration and Unit Testing -------------------------------------------------------------------
# ----------------------------------------------------------------------------------------------------