Add CI to automatically create new versioned docs
This commit is contained in:
parent
91ae48d2ab
commit
93b5f11f1c
11
.github/workflows/ci.yml
vendored
11
.github/workflows/ci.yml
vendored
@ -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 -------------------------------------------------------------------
|
||||
# ----------------------------------------------------------------------------------------------------
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user