-
-
Notifications
You must be signed in to change notification settings - Fork 25
55 lines (47 loc) · 1.5 KB
/
submit-release.yml
File metadata and controls
55 lines (47 loc) · 1.5 KB
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
name: Submit Release
on:
push:
tags:
- 'v*'
jobs:
release:
if: github.repository == 'mikesilvo164/script.skinshortcuts'
name: Submit Release
runs-on: ubuntu-latest
steps:
- name: Checkout Add-on
uses: actions/checkout@v3
with:
path: ${{ github.event.repository.name }}
- name: Set up Python 3.9
uses: actions/setup-python@v4
with:
python-version: '3.9'
- name: Install dependencies
run: |
python -m pip install --upgrade pip
python -m pip install git+https://github.com/romanvm/kodi-addon-submitter.git
- name: Configure git
run: |
git config --global user.name "mikesilvo164"
git config --global user.email "mikesilvo164@users.noreply.github.com"
- name: Remove Unwanted Files
run: |
mv .git ..
rm -rf .??*
mv ../.git .
rm LICENSE.txt
rm README.md
rm -rf docs/
git add .
git commit -m "Remove unwanted files"
working-directory: ${{ github.event.repository.name }}
- name: Submit to Official Repository
id: submit
run: |
submit-addon -r repo-scripts -b matrix --pull-request ${{ github.event.repository.name }}
working-directory: ${{ github.event.repository.name }}
env:
GH_USERNAME: mikesilvo164
GH_TOKEN: ${{ secrets.ADDON_SUBMISSION_TOKEN }}
EMAIL: mikesilvo164@users.noreply.github.com