Joomla Component Packaging Workflow Example
This article demonstrates how to use the GitHub Actions workflow for packaging and releasing a Joomla component using the Joomla Extension Packager composite action.
How to Use
- Copy the following YAML workflow into your repository's
.github/workflows/
directory (e.g.,component-packager.yml
). - Edit the
with:
section to match your component's details. - Push to your repository or trigger the workflow manually from the GitHub Actions tab.
Workflow Code
# Example workflow for a Joomla component
name: Package and Release Component
on:
workflow_dispatch:
jobs:
package:
runs-on: ubuntu-latest
permissions:
contents: write
pull-requests: write
steps:
- name: Checkout code
uses: actions/checkout@v4
with:
fetch-depth: 0
token: ${{ secrets.GH_PAT }}
- name: Joomla Extension Packager
uses: N6REJ/joomla-packager@2025.6.23
id: packager
with:
extension-name: 'com_example'
extension-xml: 'com_example.xml'
extension-type: 'component'
author: 'Your Name'
copyright-holder: 'Your Company'
copyright-start-year: '2024'
github-token: ${{ secrets.GH_PAT }}
After the workflow runs, your packaged component ZIP and changelog will be available in the repository's Releases section.