From c8b689943b8f9834af5b1b6c5f1ae2a3fb77104a Mon Sep 17 00:00:00 2001 From: Cdm2883 Date: Fri, 9 Aug 2024 18:27:08 +0800 Subject: [PATCH] ci: auto build --- .gitea/workflows/build-demo.yaml | 29 +++++++++++++++++++++++++++++ 1 file changed, 29 insertions(+) create mode 100644 .gitea/workflows/build-demo.yaml diff --git a/.gitea/workflows/build-demo.yaml b/.gitea/workflows/build-demo.yaml new file mode 100644 index 0000000..ee2ff9c --- /dev/null +++ b/.gitea/workflows/build-demo.yaml @@ -0,0 +1,29 @@ +name: Build Demo +on: [push] + +jobs: + build: + runs-on: ubuntu-latest + steps: + - name: Checkout master + uses: actions/checkout@v4 + + - name: Setup Python + uses: actions/setup-python@v5 + with: + python-version: '3.11.0' + cache: 'pip' + + - name: Install Material for MkDocs + run: pip install mkdocs-material + + - name: Setup Node.js + uses: actions/setup-node@v4 + with: + node-version: '20' + + - name: Install npm dependence + run: npm install + + - name: Run build script + run: npm run build