Skip to content

Commit

Permalink
chore: support for craft 5 (#25)
Browse files Browse the repository at this point in the history
fixes #22

Signed-off-by: Fred Carlsen <[email protected]>
  • Loading branch information
sjelfull authored May 27, 2024
1 parent 0ce358d commit f272b40
Show file tree
Hide file tree
Showing 5 changed files with 50 additions and 39 deletions.
23 changes: 23 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -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 }}
37 changes: 0 additions & 37 deletions .github/workflows/code-analysis.yaml

This file was deleted.

21 changes: 21 additions & 0 deletions .github/workflows/create-release.yml
Original file line number Diff line number Diff line change
@@ -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 }}
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
4 changes: 2 additions & 2 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand All @@ -22,7 +22,7 @@
}
],
"require": {
"craftcms/cms": "^4.0.0-beta.1",
"craftcms/cms": "^5.0",
"mikehaertl/php-shellcommand": "^1.4"
},
"require-dev": {
Expand Down

0 comments on commit f272b40

Please sign in to comment.