Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 20 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# EditorConfig is awesome: https://EditorConfig.org

# top-most EditorConfig file
root = true

# Unix-style end of lines and a blank line at the end of the file
[*]
indent_style = tab
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true

[*.php]
indent_style = space
indent_size = 4

[*.{js,json,scss,css,yml,vue}]
indent_style = space
indent_size = 2
61 changes: 61 additions & 0 deletions .github/workflows/joomla-artefact.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,61 @@
name: Create Joomla installation package

on:
release:
types: [ published ]

jobs:

createReleasePackage:

runs-on: ubuntu-latest

steps:
- name: Checkout
uses: actions/checkout@v4

- name: Compare release and manifest versions
id: check-versions
run: |
MANIFEST_VERSION=$(awk -F'[<>]' '/<version>/ {print $3}' ./jinterventionimage.xml)
RELEASE_VERSION=${{ github.ref_name }}
if [ "$MANIFEST_VERSION" != "$RELEASE_VERSION" ]; then
echo "Error: The release version must match the version specified in the manifest."
exit 1
fi

- name: Install system dependencies
run: |
sudo apt-get update -y
sudo apt-get install git zip unzip curl jq -y

- name: Setup PHP with PECL extension
uses: shivammathur/setup-php@v2
with:
php-version: '7.1'
tools: composer

- name: Get composer cache directory
id: composer-cache
run: echo "dir=$(composer config cache-files-dir)" >> $GITHUB_OUTPUT

- name: Cache dependencies
uses: actions/cache@v4
with:
path: ${{ steps.composer-cache.outputs.dir }}
key: ${{ runner.os }}-composer-${{ hashFiles('**/composer.lock') }}
restore-keys: ${{ runner.os }}-composer-

- name: Install composer dependencies from source
run: composer install --prefer-dist --no-dev --no-progress --optimize-autoloader

- name: Run build script
run: |
export TERM=xterm
zip -r lib_jinterventionimage.zip src vendor jinterventionimage.xml

- name: Upload artifact
uses: softprops/action-gh-release@v2
if: startsWith(github.ref, 'refs/tags/')
with:
files: lib_jinterventionimage.zip
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
.idea
vendor
229 changes: 0 additions & 229 deletions Intervention/Image/AbstractColor.php

This file was deleted.

Loading