Skip to content

prepare for v0.7.0 (#573) #19

prepare for v0.7.0 (#573)

prepare for v0.7.0 (#573) #19

Workflow file for this run

name: Release
on:
push:
tags:
- 'v*'
jobs:
build:
name: Release script.module.inputstreamhelper
runs-on: ubuntu-latest
steps:
- name: Checkout code
uses: actions/checkout@v2
- name: Build zip files
run: |
sudo apt-get update
sudo apt-get install libxml2-utils
make zip release=1
- name: Get Matrix filename
id: get-matrix-filename
run: |
echo ::set-output name=matrix-filename::$(cd ..;ls script.module.inputstreamhelper*.zip | head -1)
- name: Get body
id: get-body
run: |
description=$(sed '1,/^## Releases$/d;/## v[0-9\.]* ([0-9-]*)/d;/^$/,$d' README.md)
echo $description
description="${description//'%'/'%25'}"
description="${description//$'\n'/'%0A'}"
description="${description//$'\r'/'%0D'}"
echo ::set-output name=body::$description
- name: Create Release
id: create_release
uses: actions/create-release@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
tag_name: ${{ github.ref }}
release_name: ${{ github.ref }}
body: ${{ steps.get-body.outputs.body }}
draft: false
prerelease: false
- name: Upload Matrix zip
id: upload-matrix-zip
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ steps.create_release.outputs.upload_url }}
asset_name: ${{ steps.get-matrix-filename.outputs.matrix-filename }}
asset_path: ../${{ steps.get-matrix-filename.outputs.matrix-filename }}
asset_content_type: application/zip
- name: Generate distribution zip and submit to official kodi repository
id: kodi-addon-submitter
uses: xbmc/action-kodi-addon-submitter@master
with:
kodi-repository: repo-scripts
kodi-version: matrix
addon-id: script.module.inputstreamhelper
kodi-matrix: false
env:
GH_USERNAME: ${{secrets.GH_USERNAME}}
GH_TOKEN: ${{secrets.GH_TOKEN}}
EMAIL: ${{secrets.EMAIL}}