From 093a7aad955693e9894a2e6f9e2f83e0eaaf751d Mon Sep 17 00:00:00 2001 From: servostar Date: Thu, 24 Oct 2024 19:51:08 +0200 Subject: [PATCH] ci(gitea): added gitea asction for vite build Added `.gitea/workflows/vite-build.yml` installing NPM and perform clean build --- .gitea/workflows/vite-build.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) create mode 100644 .gitea/workflows/vite-build.yml diff --git a/.gitea/workflows/vite-build.yml b/.gitea/workflows/vite-build.yml new file mode 100644 index 0000000..369354a --- /dev/null +++ b/.gitea/workflows/vite-build.yml @@ -0,0 +1,19 @@ +name: Gitea Actions Demo +run-name: ${{ gitea.actor }} is performing vite build +on: [push] + +jobs: + Vite-Build: + runs-on: ubuntu-latest + steps: + - run: echo "The name of your branch is ${{ gitea.ref }} and your repository is ${{ gitea.repository }}." + - name: Check out repository code + uses: actions/checkout@v3 + - name: Install NPM + uses: actions/setup-node@v4 + with: + node-version: 20 + - name: NPM install + run: npm ci + - name: Vite build + run: npm run build