Skip to content

Commit

Permalink
docs: managed doc version via release please
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzodagostinoradicalbit committed Jun 19, 2024
1 parent 0981ec2 commit 9c8ca12
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 4 deletions.
3 changes: 2 additions & 1 deletion .github/release-config.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,8 @@
},
"api/pyproject.toml",
"sdk/pyproject.toml",
"spark/pyproject.toml"
"spark/pyproject.toml",
"docs/docusaurus.config.js"
]
}
}
Expand Down
11 changes: 9 additions & 2 deletions .github/workflows/docs-workflow.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,9 @@ jobs:
build:
name: Build Docusaurus
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./docs
steps:
- uses: actions/checkout@v4
with:
Expand All @@ -42,7 +45,12 @@ jobs:

deploy:
name: Deploy to GitHub Pages
needs: build
needs: [build]
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
runs-on: ubuntu-22.04
defaults:
run:
working-directory: ./docs

# Grant GITHUB_TOKEN the permissions required to make a Pages deployment
permissions:
Expand All @@ -54,7 +62,6 @@ jobs:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

runs-on: ubuntu-22.04
steps:
- name: Deploy to GitHub Pages
id: deployment
Expand Down
6 changes: 5 additions & 1 deletion docs/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,10 @@

import {themes as prismThemes} from 'prism-react-renderer';

// x-release-please-start-version
const VERSION = '0.8.0';
// x-release-please-end

/** @type {import('@docusaurus/types').Config} */
const config = {
title: 'Radicalbit AI Monitoring',
Expand Down Expand Up @@ -46,7 +50,7 @@ const config = {
lastVersion: 'current',
versions: {
current: {
label: '0.8.0',
label: VERSION,
path: '/',
},
},
Expand Down

0 comments on commit 9c8ca12

Please sign in to comment.