forked from fugkco/script.elementum.jackett
-
Notifications
You must be signed in to change notification settings - Fork 0
31 lines (29 loc) · 829 Bytes
/
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
name: Publish
on:
push:
tags:
- 'v*'
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up Python 3.10
uses: actions/setup-python@v3
with:
python-version: "3.10"
- name: Install dependencies
run: |
python -m pip install --upgrade pip
curl -sSL https://install.python-poetry.org | python3 -
make zip
- name: Create release
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
cat build/script.elementum.jackett/addon.xml
gh release create "${{github.ref_name}}" \
--repo="$GITHUB_REPOSITORY" \
--title="${{github.ref_name}}" \
--generate-notes \
build/script.elementum.jackett-*.zip