Joomla 5 compatibility #12
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
name: CD | |
on: | |
push: | |
paths-ignore: | |
- '.github/**' | |
- '.git**' | |
- '**README.md' | |
jobs: | |
build: | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout | |
uses: actions/checkout@v1 | |
- name: Build Joomla Package | |
id: jxbuild | |
uses: mavrosxristoforos/[email protected] | |
with: | |
build-file: 'build_popfeed.jxb' | |
- name: Get XML | |
id: getxml | |
uses: mavrosxristoforos/[email protected] | |
with: | |
xml-file: 'popfeed/popfeed.xml' | |
xpath: '//version' | |
- name: Create Release | |
id: create_release | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
tag_name: ${{ steps.getxml.outputs.info }} | |
release_name: PopFeed ${{ steps.getxml.outputs.info }} | |
#body: | | |
# Changes in this Release | |
# - First Change | |
# - Second Change | |
draft: false | |
prerelease: false | |
- name: Upload Release Asset | |
id: upload-release-asset | |
uses: actions/[email protected] | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
upload_url: ${{ steps.create_release.outputs.upload_url }} | |
asset_path: ./popfeed.zip | |
asset_name: popfeed.zip | |
asset_content_type: application/zip | |
#- name: Create Release | |
# uses: ncipollo/release-action@v1 | |
# with: | |
# artifacts: 'popfeed.zip' | |
# token: ${{ secrets.GITHUB_TOKEN }} | |
# tag: ${{ steps.getxml.outputs.info }} | |