2021-06-01 19:26:59 +00:00
|
|
|
name: Build Jellyfin-Kodi
|
|
|
|
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
branches:
|
|
|
|
- master
|
|
|
|
tags:
|
|
|
|
- '*'
|
|
|
|
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
strategy:
|
|
|
|
matrix:
|
|
|
|
py_version: [ 'py2', 'py3' ]
|
|
|
|
steps:
|
|
|
|
- name: Checkout repository
|
2022-03-09 21:07:21 +00:00
|
|
|
uses: actions/checkout@v3
|
2021-06-01 19:26:59 +00:00
|
|
|
|
|
|
|
- name: Set up Python 3.x
|
2022-06-13 14:09:58 +00:00
|
|
|
uses: actions/setup-python@v4
|
2021-06-01 19:26:59 +00:00
|
|
|
with:
|
|
|
|
python-version: 3.9
|
|
|
|
|
|
|
|
- name: Install dependencies
|
|
|
|
run: |
|
|
|
|
python -m pip install --upgrade pip
|
|
|
|
python -m pip install pyyaml
|
|
|
|
|
|
|
|
- name: Create ${{ matrix.py_version }} addon.xml
|
2021-06-01 19:39:51 +00:00
|
|
|
run: python build.py --version ${{ matrix.py_version }}
|
2021-06-01 19:26:59 +00:00
|
|
|
|
|
|
|
- name: Publish Build Artifact
|
2022-04-11 14:22:11 +00:00
|
|
|
uses: actions/upload-artifact@v3
|
2021-06-01 19:26:59 +00:00
|
|
|
with:
|
|
|
|
retention-days: 14
|
|
|
|
name: ${{ matrix.py_version }}-build-artifact
|
|
|
|
path: |
|
|
|
|
*.zip
|