name: Deploy Beta # Auto-deploy beta after push to master (mirrors dta_webapp). on: push: branches: - master jobs: unit-tests: runs-on: self-hosted defaults: run: working-directory: llm-fe steps: - uses: actions/checkout@v4 - name: Setup Node uses: actions/setup-node@v4 with: node-version: "20" - name: Install dependencies run: npm ci - name: Run unit tests run: npm run test:ci deploy-beta: needs: unit-tests runs-on: self-hosted env: SERVER_INFRA_ROOT: /home/westfarn/Documents/repos/server-infra steps: - name: Deploy chat_web_app beta run: | "$SERVER_INFRA_ROOT/scripts/deploy.sh" \ --app chat_web_app \ --env beta \ --ref "${{ gitea.sha }}"