Skip to content

Rename docker-compose.yml to compose.yml and update Node.js version t… #52

Rename docker-compose.yml to compose.yml and update Node.js version t…

Rename docker-compose.yml to compose.yml and update Node.js version t… #52

Workflow file for this run

name: Build MTBlockEditor Plugin
on:
push:
branches:
- "**/*"
tags:
- "v*"
- "*@v*"
# pull_request:
# types: [opened, synchronize]
jobs:
build:
runs-on: ubuntu-latest
env:
NODE_ENV: production
steps:
- name: Checkout repository
uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0
with:
persist-credentials: false
- name: Set up Node.js
uses: actions/setup-node@820762786026740c76f36085b0efc47a31fe5020 # v7.0.0
with:
node-version: "24"
- name: Install libs
run: sudo apt-get install --no-install-recommends -y libjson-perl libyaml-perl zip
- name: Build plugin
run: |
perl Makefile.PL --version $(if git describe --tags --exact-match >/dev/null 2>&1; then echo ''; else git rev-parse --short HEAD; fi)
make manifest
make zipdist
make dist
- name: Upload all plugins
id: upload-all-plugins
uses: actions/upload-artifact@v4
with:
name: plugin
path: |
MTBlockEditor-*
- name: Upload tarball
id: upload-tarball
uses: actions/upload-artifact@v4
with:
name: tarball
path: |
MTBlockEditor-*.tar.gz
- name: Add comment to PR
uses: peter-evans/create-or-update-comment@71345be0265236311c031f5c7866368bd1eff043
if: ${{ github.event_name == 'pull_request' }}
with:
issue-number: ${{ github.event.pull_request.number }}
body: |
### Download Links
You can download the build artifacts from the following links:
- **All Plugins**: [Download from Actions Artifacts](${{ steps.upload-all-plugins.outputs.artifact-url }})
- **Tarball**: [Download from Actions Artifacts](${{ steps.upload-tarball.outputs.artifact-url }})
- name: Upload package to GitHub Releases
if: ${{ startsWith(github.ref, 'refs/tags/v') }}
uses: softprops/action-gh-release@72f2c25fcb47643c292f7107632f7a47c1df5cd8
with:
draft: true
files: |
MTBlockEditor-*.zip
MTBlockEditor-*.tar.gz