diff --git a/.github/workflows/laravel.yml b/.github/workflows/laravel.yml index 32b499c0..6af02d33 100644 --- a/.github/workflows/laravel.yml +++ b/.github/workflows/laravel.yml @@ -63,56 +63,4 @@ jobs: # DB_CONNECTION: sqlite # DB_DATABASE: database/database.sqlite # run: php artisan test - deploy: - if: ${{ github.event_name == 'push' }} - name: Deploy - runs-on: ubuntu-latest - needs: build - environment: - name: demo - url: https://loger.neatlancer.com/ - steps: - - uses: actions/checkout@v3 - with: - fetch-depth: 0 - - name: Install SSH Key - uses: shimataro/ssh-key-action@v2 - with: - key: ${{ secrets.DO_DOPLET_SECRET }} - known_hosts: unnecessary - - - name: Adding Known Hosts - run: ssh-keyscan -H ${{ secrets.SSH_HOST }} >> ~/.ssh/known_hosts - - - name: Download frontend build - uses: actions/download-artifact@v3 - - with: - name: frontend-build - path: public - - - name: Store live name - run: git remote add live ${{ secrets.DO_REPO_URL }} - - - name: Deploy with git - env: - branch_name: live_digital_ocean - run: | - echo "Deploy to staging server" - git config --global user.email "<>" - git config --global user.name "Action Bot" - git add . - git checkout -b $branch_name - git commit -m "deploy: build" - git push live $branch_name:master -f - echo "deployed to prod-staging" - - name: Update Composer PHP - uses: appleboy/ssh-action@master - with: - host: ${{ secrets.SSH_HOST }} - username: ${{ secrets.SSH_USER }} - key: ${{ secrets.DO_DOPLET_SECRET }} - script: | - cd /var/www/loger.com - composer update --ignore-platform-reqs