Skip to content

Commit

Permalink
chore: remove deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
jesusantguerrero committed Oct 15, 2024
1 parent 36261f9 commit 3131cc2
Showing 1 changed file with 0 additions and 52 deletions.
52 changes: 0 additions & 52 deletions .github/workflows/laravel.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 3131cc2

Please sign in to comment.