replace llama models with large language models #25
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: Build and Deploy Site | |
on: | |
pull_request_target: | |
types: | |
- closed | |
concurrency: | |
group: "pages" | |
cancel-in-progress: false | |
jobs: | |
build: | |
if: github.event.pull_request.merged == true | |
runs-on: ubuntu-latest | |
steps: | |
- uses: actions/checkout@v3 | |
- name: Set up Ruby | |
uses: ruby/setup-ruby@v1 | |
with: | |
ruby-version: 3.1.0 | |
- name: Sync Documentation | |
run: | | |
python website/scripts/sync_docs.py | |
git config --global user.name "Docs Bot" | |
git config --global user.email "docs@example.com" | |
git add -f website/docs/ | |
git commit -m "Update documentation" || echo "No docs changes" | |
- name: Build site | |
working-directory: ./website | |
env: | |
JEKYLL_ENV: production | |
run: | | |
gem install bundler | |
bundle install | |
bundle exec jekyll build | |
- name: Upload artifact | |
# Automatically uploads an artifact from the './_site' directory by default | |
uses: actions/upload-pages-artifact@v3 | |
with: | |
path: website/_site/ | |
deploy: | |
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages | |
permissions: | |
contents: read | |
pages: write | |
id-token: write | |
environment: | |
name: github-pages | |
url: ${{ steps.deployment.outputs.page_url }} | |
runs-on: ubuntu-latest | |
needs: build | |
steps: | |
- name: Deploy to GitHub Pages | |
id: deployment | |
uses: actions/deploy-pages@v4 |