|
| 1 | +name: Kodi Addon-Submitter |
| 2 | + |
| 3 | +on: |
| 4 | + push: |
| 5 | + tags: |
| 6 | + - v* |
| 7 | + |
| 8 | +jobs: |
| 9 | + kodi-addon-submitter: |
| 10 | + runs-on: ubuntu-latest |
| 11 | + name: Kodi addon submitter |
| 12 | + steps: |
| 13 | + - name: Checkout |
| 14 | + uses: actions/checkout@v1 |
| 15 | + - name: Generate distribution zip and submit to official kodi repository |
| 16 | + id: kodi-addon-submitter |
| 17 | + |
| 18 | + with: |
| 19 | + kodi-repository: repo-scripts |
| 20 | + kodi-version: matrix |
| 21 | + addon-id: script.module.srgssr |
| 22 | + kodi-matrix: false # Submit a Python 2/3 compatible addon to matrix branch in addition to the target branch |
| 23 | + sub-directory: false |
| 24 | + env: # Make sure you create the below secrets (GH_TOKEN and EMAIL) |
| 25 | + GH_USERNAME: ${{ github.actor }} |
| 26 | + GH_TOKEN: ${{secrets.GH_TOKEN}} |
| 27 | + EMAIL: ${{secrets.EMAIL}} |
| 28 | + - name: Create Github Release |
| 29 | + id: create_release |
| 30 | + |
| 31 | + env: |
| 32 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 33 | + with: |
| 34 | + tag_name: ${{ github.ref }} |
| 35 | + release_name: Release ${{ github.ref }} |
| 36 | + draft: false |
| 37 | + prerelease: false |
| 38 | + - name: Upload Addon zip to github release |
| 39 | + id: upload-release-asset |
| 40 | + |
| 41 | + env: |
| 42 | + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 43 | + with: |
| 44 | + upload_url: ${{ steps.create_release.outputs.upload_url }} |
| 45 | + asset_path: ${{ steps.kodi-addon-submitter.outputs.addon-zip }} |
| 46 | + asset_name: ${{ steps.kodi-addon-submitter.outputs.addon-zip }} |
| 47 | + asset_content_type: application/zip |
0 commit comments