Skip to content

Commit

Permalink
Add build automation
Browse files Browse the repository at this point in the history
  • Loading branch information
corvus-ch committed Nov 25, 2024
1 parent c2e1d71 commit 63a3eec
Showing 1 changed file with 50 additions and 0 deletions.
50 changes: 50 additions & 0 deletions .github/workflows/ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
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

0 comments on commit 63a3eec

Please sign in to comment.