2020-11-12 14:38:10 +01:00
|
|
|
name: Release
|
|
|
|
on:
|
|
|
|
push:
|
|
|
|
tags:
|
|
|
|
- 'v*'
|
|
|
|
jobs:
|
|
|
|
build:
|
|
|
|
name: Release plugin.video.viervijfzes
|
|
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
2022-02-02 17:49:48 +01:00
|
|
|
- name: Check out ${{ github.sha }} from repository ${{ github.repository }}
|
2020-11-12 14:38:10 +01:00
|
|
|
uses: actions/checkout@v2
|
|
|
|
|
2022-02-02 17:49:48 +01:00
|
|
|
- name: Get changelog
|
|
|
|
id: get-changelog
|
2020-11-12 14:38:10 +01:00
|
|
|
run: |
|
|
|
|
description=$(sed '1,6d;/^## /,$d' CHANGELOG.md)
|
|
|
|
echo $description
|
|
|
|
description="${description//'%'/'%25'}"
|
|
|
|
description="${description//$'\n'/'%0A'}"
|
|
|
|
description="${description//$'\r'/'%0D'}"
|
|
|
|
echo ::set-output name=body::$description
|
|
|
|
|
2022-02-02 17:49:48 +01:00
|
|
|
- name: Generate distribution zips
|
|
|
|
run: scripts/build.py
|
|
|
|
|
|
|
|
- name: Create Release on Github
|
|
|
|
uses: softprops/action-gh-release@v1
|
2020-11-12 14:38:10 +01:00
|
|
|
with:
|
2022-02-02 17:49:48 +01:00
|
|
|
body: ${{ steps.get-changelog.outputs.body }}
|
2020-11-12 14:38:10 +01:00
|
|
|
draft: false
|
|
|
|
prerelease: false
|
2022-02-02 17:49:48 +01:00
|
|
|
files: "dist/*.zip"
|
|
|
|
token: ${{ secrets.GH_TOKEN }}
|