Skip to content

Add build automation #1

Add build automation

Add build automation #1

Workflow file for this run

name: CI
on:
pull_request:
branches:
- trunk
jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
with:
fetch-depth: 1
- name: Get Composer Cache Directory
id: composer-cache
run: |
echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT
- uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: |
${{ runner.os }}-composer-
- name: Composer install
uses: php-actions/composer@v6
deploy:
runs-on: ubuntu-latest
steps:
- name: Dry run file upload
uses: SamKirkland/[email protected]
with:
server: ${{ secrets.ftp_server }}
username: ${{ secrets.ftp_user }}
password: ${{ secrets.ftp_password }}
port: ${{ secrets.ftp_port }}
dry-run: true
exclude: |
**/.ddev
**/.editorconfig
**/.git*
**/.git*/**
**/composer.*
web/sites/*/files/
web/sites/*/settings.*.php