Skip to content

Bump actions/setup-python from 4 to 5 (#57) #10

Bump actions/setup-python from 4 to 5 (#57)

Bump actions/setup-python from 4 to 5 (#57) #10

Workflow file for this run

name: Check, release and publish addon
on: [push]
env:
ADDON_NAME: script.service.hyperion
TARGET_KODI_VER: nexus
jobs:
check:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install addon checker
run: |
pip install -q kodi-addon-checker
- name: Check with addon-checker
run: |
kodi-addon-checker --branch $TARGET_KODI_VER --allow-folder-id-mismatch $ADDON_NAME
github_release:
runs-on: ubuntu-latest
permissions:
contents: write
needs: check
if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install addon submitter
run: |
pip install -q git+https://github.com/xbmc/kodi-addon-submitter.git
- name: Package addon
run: |
submit-addon -s -z $ADDON_NAME
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: "*.zip"
kodi_publish:
runs-on: ubuntu-latest
needs: check
if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@v4
- name: Set up Python 3.11
uses: actions/setup-python@v5
with:
python-version: "3.11"
- name: Install addon submitter
run: |
pip install -q git+https://github.com/xbmc/kodi-addon-submitter.git
- name: Submit addon
run: |
submit-addon -r repo-scripts -b $TARGET_KODI_VER -s --pull-request $ADDON_NAME
env:
GH_USERNAME: ${{ github.actor }}
GH_TOKEN: ${{ secrets.GH_TOKEN }}
EMAIL: "${{ github.actor }}@users.noreply.github.com"