mirror of
https://github.com/jellyfin/jellyfin-kodi.git
synced 2024-12-26 18:56:15 +00:00
d2147bba33
Bumps [release-drafter/release-drafter](https://github.com/release-drafter/release-drafter) from 5.18.1 to 5.19.0. - [Release notes](https://github.com/release-drafter/release-drafter/releases) - [Commits](https://github.com/release-drafter/release-drafter/compare/v5.18.1...v5.19.0) --- updated-dependencies: - dependency-name: release-drafter/release-drafter dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
64 lines
1.9 KiB
YAML
64 lines
1.9 KiB
YAML
name: Publish Jellyfin-Kodi
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
|
|
jobs:
|
|
publish:
|
|
runs-on: ubuntu-latest
|
|
strategy:
|
|
matrix:
|
|
py_version: [ 'py2', 'py3' ]
|
|
steps:
|
|
- name: Update Draft
|
|
uses: release-drafter/release-drafter@v5.19.0
|
|
if: ${{ matrix.py_version == 'py3' }}
|
|
with:
|
|
publish: true
|
|
env:
|
|
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }}
|
|
|
|
- name: Checkout repository
|
|
uses: actions/checkout@v3
|
|
|
|
- name: Set up Python 3.x
|
|
uses: actions/setup-python@v3
|
|
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
|
|
run: python build.py --version ${{ matrix.py_version }}
|
|
|
|
- name: Publish Build Artifact
|
|
uses: actions/upload-artifact@v2
|
|
with:
|
|
retention-days: 14
|
|
name: ${{ matrix.py_version }}-build-artifact
|
|
path: |
|
|
*.zip
|
|
|
|
- name: Upload to repo server
|
|
uses: burnett01/rsync-deployments@5.2
|
|
with:
|
|
switches: -vrptz
|
|
path: '*.zip'
|
|
remote_path: /srv/repository/incoming/kodi
|
|
remote_host: ${{ secrets.DEPLOY_HOST }}
|
|
remote_user: ${{ secrets.DEPLOY_USER }}
|
|
remote_key: ${{ secrets.DEPLOY_KEY }}
|
|
|
|
- name: Add to Kodi repo and clean up
|
|
uses: appleboy/ssh-action@v0.1.4
|
|
with:
|
|
host: ${{ secrets.DEPLOY_HOST }}
|
|
username: ${{ secrets.DEPLOY_USER }}
|
|
key: ${{ secrets.DEPLOY_KEY }}
|
|
script_stop: true
|
|
script: |
|
|
python3 /usr/local/bin/kodirepo add /srv/repository/incoming/kodi/plugin.video.jellyfin+${{ matrix.py_version }}.zip --datadir /srv/repository/releases/client/kodi/${{ matrix.py_version }};
|
|
rm /srv/repository/incoming/kodi/plugin.video.jellyfin+${{ matrix.py_version }}.zip;
|