Skip to content

bad copy/paste

bad copy/paste #3

Workflow file for this run

name: PHP Composer
on:
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]
permissions:
contents: read
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Setup PHP
uses: shivammathur/setup-php@v2
with:
php-version: '8.3'
- name: Check if composer.json exists
id: check_files
uses: andstor/file-existence-action@v1
with:
files: 'composer.json'
- name: Run composer install if composer.json exists
if: steps.check_files.outputs.files_exists == 'true'
run: composer validate --no-check-publish && composer install --prefer-dist --no-progress
deploy:
runs-on: ubuntu-latest
needs: build
steps:
- name: SFTP Deploy
uses: wlixcc/SFTP-Deploy-Action@v1.2.4
with:
# your sftp server
server: ${{ secrets.SFTP_HOST }}
# username
username: ${{ secrets.SFTP_USER }}
# SSH passsword,If a password is set, the secret key pair is ignored
password: ${{ secrets.SFTP_PASSWORD }}