plugin.video.viervijfzes/.github/workflows/release.yml

35 lines
974 B
YAML
Raw Normal View History

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:
- name: Check out ${{ github.sha }} from repository ${{ github.repository }}
2020-11-12 14:38:10 +01:00
uses: actions/checkout@v2
- 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
- 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:
body: ${{ steps.get-changelog.outputs.body }}
2020-11-12 14:38:10 +01:00
draft: false
prerelease: false
files: "dist/*.zip"
token: ${{ secrets.GH_TOKEN }}