name: ci-docs on: workflow_dispatch: push: branches-ignore: [master] paths: - "documentation/docs/**" - ".github/workflows/ci-docs.yml" jobs: build: runs-on: arc-ubuntu-20.04 defaults: run: working-directory: documentation/docs steps: - uses: actions/checkout@v4 - name: Install Dependencies (Linux) run: sudo apt-get update && sudo apt-get install -y build-essential curl wget libssl-dev libudev-dev squashfs-tools protobuf-compiler git python3 && sudo apt-get update --fix-missing - name: Install pip3 run: sudo apt install -y python3-pip - name: Install Python3 modules run: sudo pip3 install pandas tabulate - name: Install rsync run: sudo apt-get install rsync - uses: rlespinasse/github-slug-action@v3.x - name: Setup pnpm uses: pnpm/action-setup@v4.0.0 with: version: 9 - uses: actions/setup-node@v4 with: node-version: 20 - name: Install Rust stable uses: actions-rs/toolchain@v1 with: toolchain: stable - name: Build all binaries uses: actions-rs/cargo@v1 with: command: build args: --workspace --release - name: Install project dependencies run: pnpm i - name: Build project run: pnpm run build - name: Move files to /dist/ run: ../scripts/move-to-dist.sh - name: Deploy branch to CI www continue-on-error: true uses: easingthemes/ssh-deploy@main env: SSH_PRIVATE_KEY: ${{ secrets.CI_WWW_SSH_PRIVATE_KEY }} ARGS: "-rltgoDzvO --delete" SOURCE: "dist/docs/" REMOTE_HOST: ${{ secrets.CI_WWW_REMOTE_HOST }} REMOTE_USER: ${{ secrets.CI_WWW_REMOTE_USER }} TARGET: ${{ secrets.CI_WWW_REMOTE_TARGET }}/docs-nextra-${{ env.GITHUB_REF_SLUG }} EXCLUDE: "/node_modules/"