Files
langchainjs/.github/workflows/deploy.yml
T
Nuno Campos 8035633874 Add CI job (and make it green) (#42)
* Add CI job

* Add ci script

* Run format in examples package

* Format docs

* Fix eslint config in langchain

* Add ci command

* Separate unit and integration tests

* Fix ci command

* Make path relative, adjust node version

* Add os matrix

* Set eol to lf

* Do not cache CI command

* Try to fix loadFromHub on windows

* Update CONTRIBUTING for unit/int tests
2023-02-18 16:03:29 -08:00

47 lines
1.3 KiB
YAML

name: Deploy to GitHub Pages
on:
push:
branches:
- main
# Review gh actions docs if you want to further define triggers, paths, etc
# https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions#on
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Allow one concurrent deployment
concurrency:
group: "pages"
cancel-in-progress: true
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Install dependencies
run: yarn install --immutable
- name: Build website
run: yarn workspace docs build
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
with:
# Upload entire repository
path: "./docs/build"
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v1