diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml new file mode 100644 index 0000000..3625774 --- /dev/null +++ b/.github/workflows/ci.yml @@ -0,0 +1,23 @@ +name: ci +on: + workflow_dispatch: + push: + branches: + - main + pull_request: +permissions: + contents: read +concurrency: + group: ci-${{ github.ref }} + cancel-in-progress: true +jobs: + ci: + name: ci + uses: superbigco/.github/.github/workflows/ci.yml@master + with: + craft_version: '5' + jobs: '["ecs", "phpstan"]' + notify_slack: true + secrets: + token: ${{ secrets.GITHUB_TOKEN }} + slack_webhook_url: ${{ secrets.SLACK_CRAFT_PLUGINS_WEBHOOK_URL }} \ No newline at end of file diff --git a/.github/workflows/code-analysis.yaml b/.github/workflows/code-analysis.yaml deleted file mode 100644 index a07f0f4..0000000 --- a/.github/workflows/code-analysis.yaml +++ /dev/null @@ -1,37 +0,0 @@ -name: Code Analysis - -on: - pull_request: - workflow_dispatch: -permissions: - contents: read -jobs: - code_analysis: - strategy: - fail-fast: false - matrix: - actions: - - name: 'PHPStan' - run: composer phpstan - - name: 'Coding Standards' - run: composer check-cs - name: ${{ matrix.actions.name }} - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Cache Composer dependencies - uses: actions/cache@v4 - with: - path: /tmp/composer-cache - key: ${{ runner.os }}-${{ hashFiles('**/composer.lock') }} - - name: Setup PHP - id: setup-php - uses: shivammathur/setup-php@v2 - with: - php-version: 8.2 - extensions: 'ctype,curl,dom,iconv,imagick,intl,json,mbstring,openssl,pcre,pdo,reflection,spl,zip' - ini-values: post_max_size=256M, max_execution_time=180, memory_limit=512M - tools: composer:v2 - - name: Install Composer dependencies - run: composer install --no-interaction --no-ansi --no-progress - - run: ${{ matrix.actions.run }} \ No newline at end of file diff --git a/.github/workflows/create-release.yml b/.github/workflows/create-release.yml new file mode 100644 index 0000000..8ae7f36 --- /dev/null +++ b/.github/workflows/create-release.yml @@ -0,0 +1,21 @@ +name: Create Release +run-name: Create release for ${{ github.event.client_payload.version }} + +on: + repository_dispatch: + types: + - superbig/new-release + +jobs: + build: + runs-on: ubuntu-latest + permissions: + contents: write + steps: + - uses: ncipollo/release-action@v1 + with: + body: ${{ github.event.client_payload.notes }} + makeLatest: ${{ github.event.client_payload.latest }} + name: ${{ github.event.client_payload.version }} + prerelease: ${{ github.event.client_payload.prerelease }} + tag: ${{ github.event.client_payload.tag }} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index a0ece07..87026bd 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file. The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/). +## 5.0.5 - 2024-05-27 +### Added +- Craft 5 support + ## 2.0.2 - 2024-05-27 ### Fixed - Fixed issue where using the plugin when rendering a template with the Craft Core Mailer would use the CP templates folder as relative path for `mj-include` calls diff --git a/composer.json b/composer.json index 2e9c1c3..903a253 100644 --- a/composer.json +++ b/composer.json @@ -2,7 +2,7 @@ "name": "superbig/craft-mjml", "description": "Render Twig emails with MJML, the only framework that makes responsive email easy.", "type": "craft-plugin", - "version": "2.0.2", + "version": "5.0.0", "keywords": [ "craft", "cms", @@ -22,7 +22,7 @@ } ], "require": { - "craftcms/cms": "^4.0.0-beta.1", + "craftcms/cms": "^5.0", "mikehaertl/php-shellcommand": "^1.4" }, "require-dev": {