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'