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

Commit

Permalink
build kodi 19 zip
Browse files Browse the repository at this point in the history
  • Loading branch information
L2501 committed Feb 29, 2020
1 parent 8e2457e commit 10083ae
Show file tree
Hide file tree
Showing 5 changed files with 87 additions and 2 deletions.
5 changes: 5 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
kodi19 export-ignore
README.md export-ignore
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
59 changes: 59 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
on:
push:
tags:
- 'v*'

name: Upload Release Asset

jobs:
build:
env:
ADDON_ID: "script.gslug.player"
GITHUB_REF: ${{ github.ref }}
name: Upload Release Asset
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@master
- name: Create zip name
id: create_name
run: echo ::set-output name=zip_name::${ADDON_ID}-${GITHUB_REF#refs/tags/v}.zip
- name: Create zip name Kodi 19
id: create_name_19
run: echo ::set-output name=zip_name::${ADDON_ID}-${GITHUB_REF#refs/tags/v}.kodi19.zip
- name: Build project
run: |
git archive --prefix=${ADDON_ID}/ -o ./artifact.zip -9 HEAD
cp ./artifact.zip ./artifact-kodi19.zip
cd kodi19 && zip -r ../artifact-kodi19.zip ${ADDON_ID}/addon.xml
- name: Create Release
id: create_release
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
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: ./artifact.zip
asset_name: ${{ steps.create_name.outputs.zip_name }}
asset_content_type: application/zip
- name: Upload Release Asset Kodi 19
id: upload-release-asset-19
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ./artifact-kodi19.zip
asset_name: ${{ steps.create_name_19.outputs.zip_name }}
asset_content_type: application/zip

1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,7 @@ share/python-wheels/
.installed.cfg
*.egg
MANIFEST
.zip

# PyInstaller
# Usually these files are written by a python script from a template
Expand Down
4 changes: 2 additions & 2 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.gslug.player" name="script.gslug.player" version="17.0.0" provider-name="Gslug">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="xbmc.addon" version="17.0.0"/>
<import addon="xbmc.python" version="2.25.0" />
<import addon="xbmc.addon" version="17.0.0" />
<import addon="script.module.requests" />
<import addon="script.module.kodi-six" />
<import addon="script.module.future" />
Expand Down
20 changes: 20 additions & 0 deletions kodi19/script.gslug.player/addon.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.gslug.player" name="script.gslug.player" version="19.0.0" provider-name="Gslug">
<requires>
<import addon="xbmc.python" version="3.0.0" />
<import addon="xbmc.addon" version="17.0.0" />
<import addon="script.module.requests" />
<import addon="script.module.kodi-six" />
<import addon="script.module.future" />
<import addon="script.module.routing" />
</requires>
<extension point="xbmc.python.pluginsource" library="default.py" >
<provides></provides>
</extension>
<extension point="xbmc.addon.metadata">
<platform>all</platform>
<reuselanguageinvoker>false</reuselanguageinvoker>
<summary lang="en">Gslug</summary>
<description lang="en">Gslug</description>
</extension>
</addon>

0 comments on commit 10083ae

Please sign in to comment.