From cd8962563e1e35de200f385a5c5ed232cd94a5c4 Mon Sep 17 00:00:00 2001 From: denis0001-dev Date: Wed, 15 Jul 2026 04:25:30 +0300 Subject: [PATCH] Delete old workflow --- .github/workflows/deploy.yml | 63 ------------------------------------ 1 file changed, 63 deletions(-) delete mode 100644 .github/workflows/deploy.yml diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml deleted file mode 100644 index 15afeb4..0000000 --- a/.github/workflows/deploy.yml +++ /dev/null @@ -1,63 +0,0 @@ -# Simple workflow for deploying to the self-hosted server -name: Deploy to server - -on: - # Runs on pushes targeting the default branch - # push: - # branches: ["main"] - # paths: - # - "backend/**" - # - "frontend/**" - # - "deployment/**" - # - "**/package.json" - # - ".nvmrc" - # - ".github/workflows/deploy.yml" - # - "!frontend/electron/**" - # - "!**.d.ts" - workflow_dispatch: - -# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued. -# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete. -concurrency: - group: "pages" - cancel-in-progress: false - -permissions: - contents: read - -jobs: - deploy: - runs-on: raspberry-pi - env: - HOME: "/root" - environment: - name: production - url: https://fromchat.ru - steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Set up environment - run: | - mkdir -p deployment - touch deployment/.env - cat > deployment/.env << EOF - JWT_SECRET=${{ secrets.JWT_SECRET }} - VAPID_PUBLIC_KEY=${{ secrets.VAPID_PUBLIC_KEY }} - VAPID_PRIVATE_KEY=${{ secrets.VAPID_PRIVATE_KEY }} - TURN_USERNAME=${{ vars.TURN_USERNAME }} - TURN_PASSWORD=${{ secrets.TURN_PASSWORD }} - EOF - - name: Build container - run: | - cd deployment - docker compose build - - name: Set up the service - run: | - cp -f deployment/fromchat.service /etc/systemd/system/fromchat.service - systemctl daemon-reload - - name: Start the server - run: | - if ! systemctl restart fromchat && sleep 10 && systemctl status fromchat; then - journalctl --no-pager -xeu fromchat - exit 1 - fi