Skip to content

Commit

Permalink
trying to use preview pr
Browse files Browse the repository at this point in the history
  • Loading branch information
vinicvaz committed May 14, 2024
1 parent 0130b3a commit 77162d5
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 2 deletions.
37 changes: 37 additions & 0 deletions .github/workflows/build-deploy-and-preview.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Build, Deploy to GitHub Pages and Deploy PR Preview

on:
push:
branches:
- docs/adding-docs-app
pull_request:
types:
- opened
- reopened
- synchronize
- closed

permissions:
contents: write
pages: write
pull-requests: write

concurrency: ci-${{ github.ref }}

jobs:
build-deploy-and-preview:
name: Build, Deploy to GitHub Pages and Deploy PR Preview
runs-on: ubuntu-latest
steps:
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: 3.11
- name: Install docs dependencies.
run: pip install -r docs/requirements-docs.txt
- name: Auto generate API Reference.
run: cd docs && pydoc-markdown
- name: Build, Deploy to GitHub Pages and Deploy PR Preview
uses: chvmvd/[email protected]
with:
type: docusaurus
1 change: 0 additions & 1 deletion .github/workflows/deploy-docs.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ on:
push:
branches:
- docs
- docs/adding-docs-app

jobs:
deploy:
Expand Down
3 changes: 2 additions & 1 deletion docs/vame-docs-app/docusaurus.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,8 @@ const config = {
url: 'https://ethoml.github.io',
// Set the /<baseUrl>/ pathname under which your site is served
// For GitHub pages deployment, it is often '/<projectName>/'
baseUrl: '/VAME/',
// baseUrl: '/VAME/',
baseUrl: process.env.GITHUB_ACTIONS ? `${process.env.BASE_URL}/` : "/VAME/",

// GitHub pages deployment config.
// If you aren't using GitHub pages, you don't need these.
Expand Down

0 comments on commit 77162d5

Please sign in to comment.