name: Docs CI/CD on: push: branches: - "staging" - "release/*" paths: - "docs/**" workflow_dispatch: jobs: deploy: runs-on: ubuntu-latest steps: - name: Deploy staging docs if: github.ref == 'refs/heads/staging' uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8 with: host: ${{ secrets.TACHI_HOST }} username: tachi key: ${{ secrets.TACHI_KEY }} script: tachi-docs-deploy -s - name: Deploy production docs if: startsWith(github.ref, 'refs/heads/release') uses: appleboy/ssh-action@1a8b3784eaa665f677fa114edd5683bb6a6bfaa8 with: host: ${{ secrets.TACHI_HOST }} username: tachi key: ${{ secrets.TACHI_KEY }} script: tachi-docs-deploy