From 363849ba4e8090002b9439a33a96c7d7306a8ada Mon Sep 17 00:00:00 2001 From: Leandro Farias Machado Date: Thu, 25 May 2023 07:54:32 -0300 Subject: [PATCH] chore(devops):remove github actions --- .github/workflows/github-actions-ec2.yml | 31 ------------------------ 1 file changed, 31 deletions(-) delete mode 100644 .github/workflows/github-actions-ec2.yml diff --git a/.github/workflows/github-actions-ec2.yml b/.github/workflows/github-actions-ec2.yml deleted file mode 100644 index cb11ce1..0000000 --- a/.github/workflows/github-actions-ec2.yml +++ /dev/null @@ -1,31 +0,0 @@ -name: Deploy Project - -# Trigger deployment only on push to master branch -on: - push: - branches: - - main - -jobs: - deploy: - name: Deploy Front-End - runs-on: ubuntu-latest - - steps: - - name: Checkout - uses: actions/checkout@v3 - - - name: Deploy to EC2 instance - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.HOST_DNS }} - username: ${{ secrets.USERNAME }} - key: ${{ secrets.EC2_SSH_KEY }} - script: | - cd ~/oktopus/frontend - git pull origin main - yarn install - yarn build - pm2 restart oktopus - -