Skip to content

Commit

Permalink
Bump 1.4.3
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Apr 12, 2020
1 parent 8208a89 commit e1f09a5
Show file tree
Hide file tree
Showing 6 changed files with 93 additions and 49 deletions.
16 changes: 14 additions & 2 deletions .github/workflows/addon-checker-krypton.yml
Original file line number Diff line number Diff line change
@@ -1,16 +1,28 @@
name: Kodi Addon-Check (Krypton)

on: [push, pull_request]
on:
push:
branches:
- '*'
tags-ignore:
- v*
pull_request:
branches:
- '*'

jobs:
kodi-addon-checker-krypton:
runs-on: ubuntu-latest
name: Kodi addon checker

steps:
- name: Checkout
uses: actions/checkout@v1

- name: Kodi addon checker validation (krypton)
id: kodi-addon-checker-krypton
uses: xbmc/action-kodi-addon-checker@v1.0
uses: xbmc/action-kodi-addon-checker@v1.2
with:
kodi-version: krypton
is-pr: false
addon-id: ${{ github.event.repository.name }}
21 changes: 15 additions & 6 deletions .github/workflows/addon-checker-matrix.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Kodi Addon-Check (Matrix)

on: [push, pull_request]
on:
push:
branches:
- '*'
tags-ignore:
- v*
pull_request:
branches:
- '*'

jobs:
kodi-addon-checker-matrix:
Expand All @@ -9,11 +17,12 @@ jobs:
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Modify addon.xml for matrix
run: |
python3 tools/modify_addonxml_matrix.py

- name: Kodi addon checker validation (matrix)
id: kodi-addon-checker-matrix
uses: xbmc/action-kodi-addon-checker@v1.0
id: kodi-addon-checker-krypton
uses: xbmc/action-kodi-addon-checker@v1.2
with:
kodi-version: matrix
is-pr: false
addon-id: ${{ github.event.repository.name }}
rewrite-for-matrix: true
60 changes: 53 additions & 7 deletions .github/workflows/addon-submitter.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,20 +10,54 @@ jobs:
runs-on: ubuntu-latest
name: Kodi addon submitter
steps:

- name: Checkout
uses: actions/checkout@v1

- name: Extract kodi official repository target
id: extract_branch_pr
shell: bash
env:
ADDON_ID: ${{ github.event.repository.name }}
run: |
echo "##[set-output name=branch;]$(git --no-pager branch -a --contains "$GITHUB_SHA" | grep 'remotes/origin/' | cut -d '/' -f3)"
if [[ $ADDON_ID == plugin* ]]; then
echo "##[set-output name=repo;]repo-plugins"
else
echo "##[set-output name=repo;]repo-scripts"
fi
- name: Kodi addon checker validation (krypton)
id: kodi-addon-checker-krypton
uses: xbmc/[email protected]
with:
kodi-version: krypton
is-pr: true
addon-id: ${{ github.event.repository.name }}
rewrite-for-matrix: false

- name: Kodi addon checker validation (matrix)
id: kodi-addon-checker-matrix
uses: xbmc/[email protected]
with:
kodi-version: matrix
is-pr: true
addon-id: ${{ github.event.repository.name }}
rewrite-for-matrix: true

- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/action-kodi-addon-submitter@v1.1
with: # Replace all the below values
kodi-repository: repo-scripts
uses: xbmc/action-kodi-addon-submitter@v1.2
with:
kodi-repository: ${{ steps.extract_branch_pr.outputs.repo }}
kodi-version: krypton
addon-id: script.tubecast
addon-id: ${{ github.event.repository.name }}
kodi-matrix: true
env: # Make sure you create the below secrets (GH_TOKEN and EMAIL)
GH_USERNAME: ${{ github.actor }}
GH_USERNAME: ${{ github.repository_owner }}
GH_TOKEN: ${{secrets.GH_TOKEN}}
EMAIL: ${{secrets.EMAIL}}

- name: Create Github Release
id: create_release
uses: actions/[email protected]
Expand All @@ -34,8 +68,9 @@ jobs:
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Addon zip to github release
id: upload-release-asset

- name: Upload Addon zip to github release (krypton)
id: upload-release-asset-krypton
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Expand All @@ -44,3 +79,14 @@ jobs:
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip

- name: Upload Addon zip to github release (matrix)
id: upload-release-asset-matrix
uses: actions/[email protected]
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip-matrix }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip-matrix }}
asset_content_type: application/zip
10 changes: 9 additions & 1 deletion .github/workflows/py-test.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,14 @@
name: Python tests

on: [push, pull_request]
on:
push:
branches:
- '*'
tags-ignore:
- v*
pull_request:
branches:
- '*'

jobs:
build:
Expand Down
6 changes: 2 additions & 4 deletions addon.xml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
<addon id="script.tubecast" name="TubeCast" version="1.4.2" provider-name="enen92">
<addon id="script.tubecast" name="TubeCast" version="1.4.3" provider-name="enen92">
<requires>
<import addon="xbmc.python" version="2.25.0"/>
<import addon="script.module.bottle" version="0.12.0"/>
Expand All @@ -19,9 +19,7 @@
<email>[email protected]</email>
<source>https://github.com/enen92/script.tubecast</source>
<news>
[ci] automated submissions to matrix
[fix] adapted xbmcgui methods for matrix
[fix] shrink screenshots
[ci] Simplified CI
</news>
<disclaimer lang="en_GB">This is not a full chromecast implementation nor will it ever be. It will only work as long as Google keep backwards compatibility with the cast v1 protocol in the Youtube application. Deeply inspired by Leapcast and gotubecast projects</disclaimer>
<disclaimer lang="pt_PT">Este addon não é uma implementação completa do protocolo cast nem nunca será. Apenas funcionará enquanto a Google mantiver a retrocompatibilidade com o protocolo cast v1 na aplicação móvel do youtube. Inspirado no Leapcast e gotubecast</disclaimer>
Expand Down
29 changes: 0 additions & 29 deletions tools/modify_addonxml_matrix.py

This file was deleted.

0 comments on commit e1f09a5

Please sign in to comment.