From c6bae94ddcae0cfa43b9b507883305c5b1c7a5c0 Mon Sep 17 00:00:00 2001 From: Shuhao Wu Date: Sun, 27 Aug 2023 12:38:42 -0400 Subject: [PATCH] Added custom GH pages workflow --- .github/pages/00-install-dependencies.sh | 3 +++ .github/pages/01-build-perfetto-ui.sh | 3 +++ .github/workflows/deploy.yml | 19 +++++++++++++++++++ 3 files changed, 25 insertions(+) create mode 100755 .github/pages/00-install-dependencies.sh create mode 100755 .github/pages/01-build-perfetto-ui.sh create mode 100644 .github/workflows/deploy.yml diff --git a/.github/pages/00-install-dependencies.sh b/.github/pages/00-install-dependencies.sh new file mode 100755 index 0000000000..f4a5a9a01a --- /dev/null +++ b/.github/pages/00-install-dependencies.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +tools/install-build-deps --ui diff --git a/.github/pages/01-build-perfetto-ui.sh b/.github/pages/01-build-perfetto-ui.sh new file mode 100755 index 0000000000..b465230074 --- /dev/null +++ b/.github/pages/01-build-perfetto-ui.sh @@ -0,0 +1,3 @@ +#!/bin/bash + +ui/build diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml new file mode 100644 index 0000000000..20e775ceb6 --- /dev/null +++ b/.github/workflows/deploy.yml @@ -0,0 +1,19 @@ +on: + push: + branches: + - cactus-rt + +name: deploy + +jobs: + build-and-deploy: + runs-on: [self-hosted, jammy] + + steps: + - uses: actions/checkout@v3 + + - name: Setup dependencies + run: .github/deploy/00-install-dependencies.sh + + - name: Build Perfetto UI + run: .github/deploy/01-build-perfetto-ui.sh