4a9066fb6b
Bumps [pnpm/action-setup](https://github.com/pnpm/action-setup) from 4.0.0 to 4.1.0. - [Release notes](https://github.com/pnpm/action-setup/releases) - [Commits](https://github.com/pnpm/action-setup/compare/v4.0.0...v4.1.0) --- updated-dependencies: - dependency-name: pnpm/action-setup dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com> Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
65 lines
2.0 KiB
YAML
65 lines
2.0 KiB
YAML
name: ci-docs
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
branches-ignore: [master]
|
|
paths:
|
|
- "documentation/docs/**"
|
|
- ".github/workflows/ci-docs.yml"
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: arc-ubuntu-22.04
|
|
env:
|
|
RUSTUP_PERMIT_COPY_RENAME: 1
|
|
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 -y rsync
|
|
- uses: rlespinasse/github-slug-action@v3.x
|
|
- name: Setup pnpm
|
|
uses: pnpm/action-setup@v4.1.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/"
|