Add build automation #9
Workflow file for this run
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CI | |
on: | |
pull_request: | |
branches: | |
- trunk | |
jobs: | |
ci: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Setup Rclone | |
uses: AnimMouse/setup-rclone@v1 | |
with: | |
rclone_config: | | |
[remote] | |
type = sftp | |
host = ${{ secrets.FTP_SERVER }} | |
user = ${{ secrets.FTP_USER }} | |
port = ${{ secrets.FTP_PORT }} | |
# Password must be obfuscated using `rclone obfuscate` | |
pass = ${{ secrets.FTP_PASSWORD }} | |
shell_type = unix | |
md5sum_command = none | |
sha1sum_command = none | |
disable_base64: true | |
- 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 | |
with: | |
dev: no | |
args: --ignore-platform-reqs --classmap-authoritative | |
- name: Dry run file upload | |
run: | | |
rclone -q --exclude-from .ftpignore --copy-links check --combined - . remote: 2>/dev/null | grep -vE '^= ' |