Commit c29d13c2 authored by Muyang Li's avatar Muyang Li
Browse files

chore: disable the workflow_dispatch

parent 852735ec
...@@ -2,19 +2,16 @@ name: Build Docs ...@@ -2,19 +2,16 @@ name: Build Docs
on: on:
schedule: schedule:
- cron: '0 7 * * *' # UTC time - cron: '0 7 * * *' # UTC time
workflow_dispatch: repository_dispatch:
types: [build-docs]
jobs: jobs:
tag: build-and-deploy-docs:
name: Build and deploy docs name: Build and deploy docs
runs-on: [self-hosted, blackwell] runs-on: [self-hosted, blackwell]
if: github.repository == 'nunchaku-tech/nunchaku' if: github.repository == 'nunchaku-tech/nunchaku' && (github.event_name != 'repository_dispatch' || github.actor == 'lmxyy')
env:
DOC_VERSION: ${{ github.event.client_payload.version || 'nightly' }}
steps: steps:
- name: Test ssh
run: |
echo "${{ secrets.DO_SSH_KEY }}" > ./id_rsa
chmod 600 id_rsa
ssh -o StrictHostKeyChecking=no -i id_rsa ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }} "echo SSH connection successful"
rm id_rsa
- name: Checkout main branch - name: Checkout main branch
uses: actions/checkout@v4 uses: actions/checkout@v4
with: with:
...@@ -59,7 +56,7 @@ jobs: ...@@ -59,7 +56,7 @@ jobs:
source $(conda info --base)/etc/profile.d/conda.sh source $(conda info --base)/etc/profile.d/conda.sh
conda activate nunchaku-docs || { echo "Failed to activate conda env"; exit 1; } conda activate nunchaku-docs || { echo "Failed to activate conda env"; exit 1; }
which python which python
rsync -avz --delete docs/build/html/ ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }}:${{ secrets.DO_DOCS_ROOT }}/nunchaku-nightly rsync -avz --delete docs/build/html/ ${{ secrets.DO_USER }}@${{ secrets.DO_HOST }}:${{ secrets.DO_DOCS_ROOT }}/nunchaku-${{ env.DOC_VERSION }}
rm id_rsa rm id_rsa
env: env:
RSYNC_RSH: "ssh -o StrictHostKeyChecking=no -i id_rsa" RSYNC_RSH: "ssh -o StrictHostKeyChecking=no -i id_rsa"
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment