Skip to content

Commit

Permalink
👷: tests for ci githubaction
Browse files Browse the repository at this point in the history
  • Loading branch information
PHPLukaas committed Mar 7, 2024
1 parent 824ebad commit de61332
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 33 deletions.
33 changes: 0 additions & 33 deletions .github/workflows/dev.yml

This file was deleted.

32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -1 +1,33 @@
name: SSH Upload and Composer Install

on:
push:
branches:
- dev
- -ci/ci-cd-for-api

jobs:
deploy:
runs-on: ubuntu-latest

steps:
- name: Checkout code
uses: actions/checkout@v2

- name: Install SSH key
uses: webfactory/[email protected]
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}

- name: Upload PHP code
run: scp -r . ${{ secrets.SERVER_USERNAME }}@${{ secrets.SERVER_HOST }}:/home/julesartd/www/api-dev-edt-3il

- name: SSH into server and run composer install
uses: appleboy/ssh-action@master
with:
host: ${{ secrets.SERVER_HOST }}
username: ${{ secrets.SERVER_USERNAME }}
key: ${{ secrets.SSH_PRIVATE_KEY }}
script: |
cd /home/julesartd/www/api-dev-edt-3il
composer2 install

0 comments on commit de61332

Please sign in to comment.