Move build docs functionality to workflow (upload.yml) #20
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: Upload latest documentation | |
on: | |
workflow_dispatch: | |
pull_request: # to comment on merge | |
branches: | |
- master | |
env: | |
HF_RAG_REPO: The-OpenROAD-Project/test_repo # To replace with ORAssistant_RAG_Dataset | |
OR_COMMIT_HASH: ffc5760f2df639cd184c40ceba253c7e02a006d5 | |
ORFS_COMMIT_HASH: b94834df01cb58915bc0e8dabf85a314fbd8fb9e | |
OPENSTA_COMMIT_HASH: 1c7f022cd0a02ce71d047aa3dbb64e924b6efbd5 | |
jobs: | |
or-manpages: | |
runs-on: self-hosted | |
steps: | |
- name: check hfcli | |
shell: bash --norc -leo pipefail {0} | |
run: | |
huggingface-cli whoami | |
# - name: Checkout | |
# uses: actions/checkout@v4 | |
# - name: Set up prerequisites | |
# working-directory: ./backend | |
# run: | | |
# sudo apt-get update | |
# sudo apt-get install -y make pandoc git | |
# make init-dev | |
# - name: Populate environment variables | |
# working-directory: ./backend | |
# run: | | |
# rm -f .env && touch .env | |
# echo "OR_REPO_COMMIT=$OR_COMMIT_HASH" >> .env | |
# echo "ORFS_REPO_COMMIT=$ORFS_COMMIT_HASH" >> .env | |
# echo "OPENSTA_REPO_COMMIT=$OPENSTA_COMMIT_HASH" >> .env | |
# - name: Preprocess docs | |
# working-directory: ./backend | |
# run: | | |
# . .venv/bin/activate | |
# python build_docs.py | |
# - name: Upload files | |
# working-directory: ./backend | |
# run: | | |
# . .venv/bin/activate | |
# huggingface-cli upload ${{ env.HF_RAG_REPO }} ./data / --repo-type dataset |