Skip to content

Commit

Permalink
build: create release zip (#28)
Browse files Browse the repository at this point in the history
* build: create release zip

* Separate release step & fixes

---------

Co-authored-by: LordGrey <[email protected]>
  • Loading branch information
sanzoghenzo and Lord-Grey authored Aug 18, 2023
1 parent 31a60ac commit c0d40a0
Showing 1 changed file with 25 additions and 1 deletion.
26 changes: 25 additions & 1 deletion .github/workflows/publish-addon.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,31 @@ jobs:
run: |
kodi-addon-checker --branch $TARGET_KODI_VER --allow-folder-id-mismatch $ADDON_NAME
publish:
github_release:
runs-on: ubuntu-latest
permissions:
contents: write

needs: check
if: github.ref_type == 'tag'
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.11
uses: actions/setup-python@v4
with:
python-version: "3.11"
- name: Install addon submitter
run: |
pip install -q git+https://github.com/xbmc/kodi-addon-submitter.git
- name: Package addon
run: |
submit-addon -s -z $ADDON_NAME
- name: Publish release
uses: ncipollo/release-action@v1
with:
artifacts: "*.zip"

kodi_publish:
runs-on: ubuntu-latest

needs: check
Expand Down

0 comments on commit c0d40a0

Please sign in to comment.