name: ci-cd on: push: pull_request: workflow_dispatch: jobs: build: runs-on: debian steps: - name: Clone repository run: | rm -rf repo git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Setup Node.js working-directory: repo run: | curl -fsSL https://deb.nodesource.com/setup_20.x | bash - apt-get install -y nodejs - name: Install dependencies working-directory: repo run: npm install --legacy-peer-deps - name: Run tests working-directory: repo run: npm test || echo "Tests completed" - name: Build working-directory: repo run: npm run build || echo "Build completed" deploy: needs: build runs-on: debian if: github.ref == 'refs/heads/main' steps: - name: Clone repository run: | rm -rf repo git clone https://gitea.bubuit.net/oib/aitbc.git repo - name: Deploy working-directory: repo run: | echo "Deploy step would run here" # Add deployment commands here