-
-
Notifications
You must be signed in to change notification settings - Fork 5
43 lines (42 loc) · 1.34 KB
/
release.yml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
name: Create release with ZIP
on:
workflow_run:
workflows: [Kodi Addon-Check]
types:
- completed
jobs:
build:
runs-on: ubuntu-latest
if: ${{ github.event.workflow_run.conclusion == 'success' && github.event_name != 'pull_request' }} # Run if tests went ok and not a pull request
steps:
- name: Checkout
uses: actions/checkout@master
- name: Get Version
id: version
uses: howbout-ltd/get-xml-info@master
with:
xml-file: "addon.xml"
xpath: "//addon/@version"
- name: Get changelog
id: changelog
uses: howbout-ltd/get-xml-info@master
with:
xml-file: "addon.xml"
xpath: "//addon/extension[2]/news"
- name: Archive Release
uses: thedoctor0/zip-release@master
with:
type: 'zip'
path: 'plugin.video.filmin'
directory: '..'
filename: 'filmin-kodi-release.zip'
exclusions: '*.git* .editorconfig tools'
- name: Create Release
uses: ncipollo/release-action@v1
with:
artifacts: "../filmin-kodi-release.zip"
artifactContentType: application/zip
token: ${{ secrets.GITHUB_TOKEN }}
tag: v${{ steps.version.outputs.info }}
body: ${{ steps.changelog.outputs.info }}
skipIfReleaseExists: true