Skip to content

Commit

Permalink
Add CI
Browse files Browse the repository at this point in the history
  • Loading branch information
enen92 committed Dec 4, 2019
1 parent 9cf0e6a commit 8a563d6
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 29 deletions.
3 changes: 3 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.gitignore export-ignore
.gitattributes export-ignore
.github export-ignore
16 changes: 16 additions & 0 deletions .github/workflows/addon-check.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Kodi Addon-Check

on: [push]

jobs:
kodi-addon-checker:
runs-on: ubuntu-latest
name: Kodi addon checker
steps:
- name: Checkout
uses: actions/checkout@v1
- name: Kodi addon checker validation
id: kodi-addon-checker
uses: enen92/[email protected]
with:
kodi-version: 'gotham'
45 changes: 45 additions & 0 deletions .github/workflows/addon-submitter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
name: Kodi Addon-Submitter

on:
create:
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: enen92/[email protected]
with: # Replace all the below values
kodi-repository: 'repo-scripts'
kodi-version: 'gotham'
addon-id: 'script.module.xbmcswift2'
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/[email protected]
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/[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 }}
asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }}
asset_content_type: application/zip
29 changes: 0 additions & 29 deletions .github/workflows/addoncheck.yml

This file was deleted.

0 comments on commit 8a563d6

Please sign in to comment.