Skip to content

Commit

Permalink
Initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
bossanova808 committed Nov 2, 2024
0 parents commit ea7e980
Show file tree
Hide file tree
Showing 20 changed files with 1,419 additions and 0 deletions.
7 changes: 7 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
* text=auto eol=lf
# These files are blocked from the release.zip creation
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
*.pyc export-ignore
*.pyo export-ignore
2 changes: 2 additions & 0 deletions .github/FUNDING.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
github: bossanova808
custom: "https://www.buymeacoffee.com/bossanova808"
34 changes: 34 additions & 0 deletions .github/workflows/addon-checker.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
name: Kodi Addon-Check

on: [push, pull_request]

jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi Addon-Checker
steps:

- name: Checkout
uses: actions/checkout@v3
with:
fetch-depth: 0

- name: Set up Python
uses: actions/setup-python@v2
with:
python-version: '3.x'

- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip3 install --user kodi-addon-checker
- name: Extract job variables
shell: bash

run: |
echo "addon=$(git diff --diff-filter=d --name-only HEAD~ | grep / | cut -d / -f1 | sort | uniq)" >> $GITHUB_OUTPUT
id: extract_vars

- name: Addon-Check
run: $HOME/.local/bin/kodi-addon-checker --branch=matrix

45 changes: 45 additions & 0 deletions .github/workflows/submit.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Kodi Addon-Submitter

on:
push:
tags:
- v*

jobs:
kodi-addon-submitter:
runs-on: ubuntu-latest
name: Kodi addon submitter
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/action-kodi-addon-submitter@v1.3
with:
kodi-repository: repo-plugins
kodi-version: matrix
addon-id: plugin.switchback
env: # Make sure you create the below secrets (GH_TOKEN and EMAIL)
GH_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
EMAIL: ${{ secrets.EMAIL }}
- name: Create Github Release
id: create_release
uses: actions/create-release@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: Release ${{ github.ref }}
draft: false
prerelease: false
- name: Upload Addon zip to github release
id: upload-release-asset
uses: actions/upload-release-asset@v1.0.1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip
8 changes: 8 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
*.pyc
*.pyo
.DS*
.pylint_rc
/.idea
/.project
/.pydevproject
/.settings
Loading

0 comments on commit ea7e980

Please sign in to comment.