-
Notifications
You must be signed in to change notification settings - Fork 28
65 lines (65 loc) · 2.13 KB
/
build-publish.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
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
name: build-publish-addon
on:
push:
branches:
- master
env:
VERSION: 'undefined'
TOKEN: ${{secrets.PAT}}
jobs:
versioning:
runs-on: ubuntu-latest
outputs:
VERSION: ${{ steps.tag_version.outputs.new_version }}
steps:
- uses: actions/checkout@v4
- name: Bump version and push tag
id: tag_version
uses: mathieudutour/[email protected]
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
release_branches: master
build-leia:
needs: versioning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build addon
run: $GITHUB_WORKSPACE/.github/scripts/build-addon.sh ${{ needs.versioning.outputs.VERSION }} Leia
- name: Upload Addon-artifacts-Leia
uses: actions/upload-artifact@v4
with:
name: Addon-artifacts-Leia
path: "${{ runner.temp }}/Leia/*.zip"
build-matrix:
needs: versioning
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- name: Build addon
run: $GITHUB_WORKSPACE/.github/scripts/build-addon.sh ${{ needs.versioning.outputs.VERSION }} Matrix
- name: Upload Addon-artifacts-Matrix
uses: actions/upload-artifact@v4
with:
name: Addon-artifacts-Matrix
path: "${{ runner.temp }}/Matrix/*.zip"
publish-leia:
needs: [versioning, build-leia]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: Addon-artifacts-Leia
- name: Publish addon
run: $GITHUB_WORKSPACE/.github/scripts/publish-addon.sh ${{ needs.versioning.outputs.VERSION }} "github.com/firsttris/repository.sendtokodi.git"
publish-matrix:
needs: [versioning, build-matrix]
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: actions/download-artifact@v4
with:
name: Addon-artifacts-Matrix
- name: Publish addon
run: $GITHUB_WORKSPACE/.github/scripts/publish-addon.sh ${{ needs.versioning.outputs.VERSION }} "github.com/firsttris/repository.sendtokodi.python3.git"