Skip to content

Created using Colab #103

Created using Colab

Created using Colab #103

Workflow file for this run

# Workflow derived from https://github.com/r-lib/actions/tree/v2/examples
# Need help debugging build failures? Start at https://github.com/r-lib/actions#where-to-find-help
on:
push:
branches: [main, master, rebase-commits]
pull_request:
branches: [main, master]
release:
types: [published]
workflow_dispatch:
name: pkgdown
jobs:
pkgdown:
runs-on: MacOS-latest
# Only restrict concurrency for non-PR jobs
concurrency:
group: pkgdown-${{ github.workflow }}-${{ github.ref }}
env:
GITHUB_PAT: ${{ secrets.GITHUB_TOKEN }}
permissions:
contents: write
steps:
- uses: actions/checkout@v3
- uses: r-lib/actions/setup-pandoc@v2
with:
pandoc-version: '3.1.8'
- uses: r-lib/actions/setup-r@v2
with:
r-version: latest
platform: 'aarch64-apple-darwin20'
use-public-rspm: true
- uses: r-lib/actions/setup-r-dependencies@v2
with:
extra-packages: any::pkgdown, any::rcmdcheck, any::remotes
needs: website
- uses: actions/setup-python@v4
with:
python-version: ${{ matrix.config.python }}
- name: setup env
shell: Rscript {0}
run: |
reticulate::install_miniconda()
conda_path <- reticulate::conda_create(envname = "BertopicR",
conda = paste0(reticulate::miniconda_path(), "/condabin/conda"),
packages = c("bertopic==0.15.0", "numpy==1.24.3", "hdbscan==0.8.29",
"umap-learn==0.5.3", "pandas==2.0.2", "scikit-learn==1.2.2",
"pytorch==2.0.0","tqdm==4.65.0", "sentence-transformers==2.2.2",
"plotly==5.15.0", "openai==0.27.8"))
print(conda_path)
print(R.Version()$platform)
writeLines(
paste0("RETICULATE_PYTHON=", reticulate::virtualenv_python(conda_path)),
Sys.getenv("GITHUB_ENV"))
- name: Install BertopicR
run: |
remotes::install_local(".") # install the package from the current repository
shell: Rscript {0}
- name: Build site
run: pkgdown::build_site_github_pages(new_process = FALSE, install = FALSE)
shell: Rscript {0}
- name: Deploy to GitHub pages 🚀
if: github.event_name != 'pull_request'
uses: JamesIves/[email protected]
with:
clean: false
branch: gh-pages
folder: docs