-
-
Notifications
You must be signed in to change notification settings - Fork 114
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use fully qualified version numbers for CI
🧹 Clean up CI after removing py2
- Loading branch information
Showing
5 changed files
with
29 additions
and
39 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -6,23 +6,19 @@ on: | |
jobs: | ||
publish: | ||
runs-on: ubuntu-latest | ||
strategy: | ||
matrix: | ||
py_version: [ 'py3' ] | ||
steps: | ||
- name: Update Draft | ||
uses: release-drafter/[email protected] | ||
if: ${{ matrix.py_version == 'py3' }} | ||
with: | ||
publish: true | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.JF_BOT_TOKEN }} | ||
|
||
- name: Checkout repository | ||
uses: actions/checkout@v4 | ||
uses: actions/checkout@v4.1.1 | ||
|
||
- name: Set up Python 3.x | ||
uses: actions/setup-python@v5 | ||
- name: Set up Python | ||
uses: actions/setup-python@v5.0.0 | ||
with: | ||
python-version: 3.9 | ||
|
||
|
@@ -31,19 +27,19 @@ jobs: | |
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: Build addon | ||
run: python build.py | ||
|
||
- name: Publish Build Artifact | ||
uses: actions/upload-artifact@v3 | ||
uses: actions/upload-artifact@v3.1.3 | ||
with: | ||
retention-days: 14 | ||
name: ${{ matrix.py_version }}-build-artifact | ||
name: py3-build-artifact | ||
path: | | ||
*.zip | ||
- name: Upload to repo server | ||
uses: burnett01/rsync-deployments@5.2 | ||
uses: burnett01/rsync-deployments@6.0.0 | ||
with: | ||
switches: -vrptz | ||
path: '*.zip' | ||
|
@@ -60,5 +56,5 @@ jobs: | |
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; | ||
python3 /usr/local/bin/kodirepo add /srv/repository/incoming/kodi/plugin.video.jellyfin+py3.zip --datadir /srv/repository/releases/client/kodi/py3; | ||
rm /srv/repository/incoming/kodi/plugin.video.jellyfin+py3.zip; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters