Prepare for v2.5.33 release (#1199) #62
Workflow file for this run
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 workflow performs an automated release to GitHub and to the official | |
# Kodi repository, for a pre-Matrix and a post-Matrix release. | |
name: Release | |
on: | |
push: | |
tags: | |
- 'v*' | |
jobs: | |
build: | |
name: Release plugin.video.vrt.nu | |
runs-on: ubuntu-latest | |
steps: | |
- name: Checkout code | |
uses: actions/checkout@v4 | |
- name: Build zip files | |
run: | | |
sudo apt-get update | |
sudo apt-get install libxml2-utils | |
make multizip release=1 | |
- name: Get Krypton filename | |
id: get-krypton-filename | |
run: | | |
echo krypton-filename=$(cd ..;ls plugin.video.vrt.nu*.zip | grep -v '+matrix.' | head -1) >> $GITHUB_OUTPUT | |
- name: Get Matrix filename | |
id: get-matrix-filename | |
run: | | |
echo matrix-filename=$(cd ..;ls plugin.video.vrt.nu*+matrix.*.zip | head -1) >> $GITHUB_OUTPUT | |
- name: Get body | |
id: get-body | |
run: | | |
description=$(sed '1,/^## Releases$/d;/## v[0-9\.]* ([0-9-]*)/d;/^$/,$d' README.md) | |
echo $description | |
EOF=$(dd if=/dev/urandom bs=15 count=1 status=none | base64) | |
echo "body<<$EOF" >> $GITHUB_OUTPUT | |
echo "$description" >> $GITHUB_OUTPUT | |
echo "$EOF" >> $GITHUB_OUTPUT | |
- name: Create Release | |
id: create_release | |
uses: softprops/action-gh-release@v2 | |
env: | |
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
with: | |
body: ${{ steps.get-body.outputs.body }} | |
draft: false | |
prerelease: false | |
files: | | |
../${{ steps.get-krypton-filename.outputs.krypton-filename }} | |
../${{ steps.get-matrix-filename.outputs.matrix-filename }} | |
- name: Submit matrix version to official kodi repository | |
id: kodi-submit-matrix | |
uses: mediaminister/action-kodi-addon-submitter@master | |
with: | |
kodi-repository: repo-plugins | |
kodi-version: matrix | |
addon-id: plugin.video.vrt.nu | |
env: | |
GH_USERNAME: ${{secrets.GH_USERNAME}} | |
GH_TOKEN: ${{secrets.GH_TOKEN}} | |
EMAIL: ${{secrets.EMAIL}} |