Skip to content
This repository has been archived by the owner on May 5, 2023. It is now read-only.

Commit

Permalink
add release workflow
Browse files Browse the repository at this point in the history
add missing LICENSE
move updatestream to github
  • Loading branch information
Branko Wilhelm committed Aug 21, 2020
1 parent c03b461 commit 677903e
Show file tree
Hide file tree
Showing 7 changed files with 743 additions and 43 deletions.
1 change: 1 addition & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
custom: ["https://www.paypal.me/b2un0/EUR"]
49 changes: 49 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,49 @@
name: 'release'

on:
create:
tags:

jobs:
release:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v1

- name: Inject slug/short variables
uses: rlespinasse/[email protected]

- name: Find and Replace
uses: shitiomatic/str-replace@master
with:
find: "@REVISION@"
replace: "${{ env.GITHUB_REF_SLUG }}"
include: "./*.xml"

- name: Archive Release
uses: thedoctor0/zip-release@master
with:
filename: "${{ github.event.repository.name }}.zip"
exclusions: '*.git* /screenshots/* updatestream.xml'

- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ env.GITHUB_REF_SLUG }}
draft: false
prerelease: false

- name: Upload Release Asset
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ github.event.repository.name }}.zip
asset_name: ${{ github.event.repository.name }}.zip
asset_content_type: application/zip
674 changes: 674 additions & 0 deletions LICENSE

Large diffs are not rendered by default.

41 changes: 0 additions & 41 deletions build.xml

This file was deleted.

4 changes: 2 additions & 2 deletions com_jdownloads.xml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
</files>
<scriptfile>script.installer.php</scriptfile>
<updateservers>
<server type="collection" priority="1" name="z-index development">http://www.z-index.net/en/extensions.xml</server>
<server type="extension" priority="1" name="Xmap - jDownloads Integration">https://raw.githubusercontent.com/z-index-net/joomla-plugin-xmap-jdownloads/master/updatestream.xml</server>
</updateservers>
<languages folder="language">
<language download="en-GB">en-GB/en-GB.plg_xmap_com_jdownloads.ini</language>
Expand Down Expand Up @@ -86,4 +86,4 @@
</fieldset>
</fields>
</config>
</extension>
</extension>
Empty file added readme.md
Empty file.
17 changes: 17 additions & 0 deletions updatestream.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<?xml version="1.0"?>
<updates>
<update>
<name>Xmap - jDownloads Integration</name>
<element>com_jdownloads</element>
<type>plugin</type>
<client>0</client>
<folder>xmap</folder>
<version>1.0.0</version>
<infourl>https://github.com/z-index-net/joomla-plugin-xmap-jdownloads</infourl>
<downloads>
<downloadurl type="full" format="zip">https://github.com/z-index-net/joomla-plugin-xmap-jdownloads/releases/download/1.0.0/joomla-plugin-xmap-jdownloads.zip</downloadurl>
</downloads>
<targetplatform name="joomla" version="^3\."/>
</update>
</updates>

0 comments on commit 677903e

Please sign in to comment.