Merge tag 'v0.0.32' into stable #3500
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: Generate docs for runhouse-docs | |
# https://cpina.github.io/push-to-another-repository-docs/index.html | |
on: | |
push: | |
branches: | |
- '*' | |
jobs: | |
generate-docs: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Check out repository code | |
uses: actions/checkout@v3 | |
- name: Install | |
run: python -m pip install --upgrade pip && pip install -e . | |
- name: Install docs requirements | |
run: pip install -r docs/requirements.txt | |
- name: Build docs | |
run: cd docs && make json | |
- name: Get current branch name | |
run: echo "CURRENT_BRANCH=${GITHUB_REF#refs/heads/}" >> $GITHUB_ENV | |
- name: Set target branch name | |
run: echo "BRANCH_NAME=${CURRENT_BRANCH}" >> $GITHUB_ENV | |
- name: Push directory to another repository | |
uses: cpina/github-action-push-to-another-repository@v1.7.2 | |
env: | |
SSH_DEPLOY_KEY: ${{ secrets.SSH_DEPLOY_KEY }} | |
with: | |
source-directory: 'docs/_build/json/' | |
destination-github-username: 'run-house' | |
destination-repository-name: 'runhouse-docs' | |
target-branch: ${{ env.BRANCH_NAME }} | |
create-target-branch-if-needed: true |