From 348989eb7ac8dccc98ab2356141ee46ce2139d2a Mon Sep 17 00:00:00 2001 From: Preetinder Singh <132475572+DarkCoder26@users.noreply.github.com> Date: Sat, 15 Jun 2024 04:21:16 +0530 Subject: [PATCH] Delete github/workflows directory --- github/workflows/check-pull-requests.yml | 27 ------------------------ github/workflows/deploy.yml | 27 ------------------------ 2 files changed, 54 deletions(-) delete mode 100644 github/workflows/check-pull-requests.yml delete mode 100644 github/workflows/deploy.yml diff --git a/github/workflows/check-pull-requests.yml b/github/workflows/check-pull-requests.yml deleted file mode 100644 index 3b32868..0000000 --- a/github/workflows/check-pull-requests.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Check Pull Requests - -on: - pull_request: - types: [opened, synchronize, reopened] - -jobs: - lint-and-test: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up Node.js - uses: actions/setup-node@v2 - with: - node-version: '14' - - - name: Install dependencies - run: npm install - - - name: Run Linter - run: npm run lint - - - name: Run Tests - run: npm test diff --git a/github/workflows/deploy.yml b/github/workflows/deploy.yml deleted file mode 100644 index b09c030..0000000 --- a/github/workflows/deploy.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Deploy to Server - -on: - push: - branches: - - main - -jobs: - deploy: - runs-on: ubuntu-latest - - steps: - - name: Checkout code - uses: actions/checkout@v2 - - - name: Set up SSH - uses: webfactory/ssh-agent@v0.5.3 - with: - ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }} - - - name: Pull latest commit on server - env: - SERVER_USER: ${{ secrets.SERVER_USER }} - SERVER_HOST: ${{ secrets.SERVER_HOST }} - SERVER_PATH: ${{ secrets.SERVER_PATH }} - run: | - ssh $SERVER_USER@$SERVER_HOST 'cd $SERVER_PATH && git pull origin main && npm install && npm run build'