This commit is contained in:
parent
b253439b20
commit
0b001602e1
4 changed files with 145 additions and 0 deletions
1
.forgejo/FUNDING.yml
Normal file
1
.forgejo/FUNDING.yml
Normal file
|
@ -0,0 +1 @@
|
|||
buy_me_a_coffee: CakesTwix
|
57
.forgejo/ISSUE_TEMPLATE/new_source.yml
Normal file
57
.forgejo/ISSUE_TEMPLATE/new_source.yml
Normal file
|
@ -0,0 +1,57 @@
|
|||
name: "\U0001F195 Нове джерело"
|
||||
description: Подати заявку на додавання нового сайту
|
||||
labels: ["new-source"]
|
||||
body:
|
||||
- type: input
|
||||
id: name
|
||||
attributes:
|
||||
label: Назва сайту
|
||||
description: |
|
||||
Вкажіть назву сайту
|
||||
placeholder: |
|
||||
Наприклад: "Unimay"
|
||||
validations:
|
||||
required: true
|
||||
- type: input
|
||||
id: url
|
||||
attributes:
|
||||
label: Посилання на сайт
|
||||
description: |
|
||||
Вказати актуальне посилання на ресурс
|
||||
placeholder: |
|
||||
Наприклад: "https://unimay.media"
|
||||
validations:
|
||||
required: true
|
||||
- type: textarea
|
||||
id: more-info
|
||||
attributes:
|
||||
label: Корисна інформація для парсингу
|
||||
description: Вкажіть наявність API або звідки отримати посилання на m3u8
|
||||
placeholder: |
|
||||
Example:
|
||||
1. https://api.unimay.media
|
||||
2. https://api.unimay.media/api/release/search/?title=Пошук
|
||||
3. etc
|
||||
validations:
|
||||
required: false
|
||||
- type: textarea
|
||||
id: other-details
|
||||
attributes:
|
||||
label: Інша інформація
|
||||
placeholder: |
|
||||
Додаткова інформація, причини додати.
|
||||
- type: checkboxes
|
||||
id: content
|
||||
attributes:
|
||||
label: Який тип медія там є?
|
||||
description: 'Вкажіть наявність серіалів, фільмів і тд'
|
||||
options:
|
||||
- label: Фільми
|
||||
- label: Серіали
|
||||
- label: Мультфільми
|
||||
- label: Мультсеріали
|
||||
- label: Аніме
|
||||
- label: Дорами
|
||||
- label: "\U0001F353 18+"
|
||||
validations:
|
||||
required: true
|
28
.forgejo/ISSUE_TEMPLATE/звіт-про-помилку.md
Normal file
28
.forgejo/ISSUE_TEMPLATE/звіт-про-помилку.md
Normal file
|
@ -0,0 +1,28 @@
|
|||
---
|
||||
name: Звіт про помилку
|
||||
about: Створіть звіт, щоб допомогти нам покращитися
|
||||
title: ''
|
||||
labels: bug
|
||||
assignees: ''
|
||||
|
||||
---
|
||||
|
||||
**Назва розширення**
|
||||
Напишіть назву джерела, де знайшли помилку
|
||||
|
||||
**Опис помилки**
|
||||
Чіткий і стислий опис того, в чому полягає помилка.
|
||||
|
||||
**Як повторити помилку**
|
||||
Кроки для відтворення поведінки:
|
||||
1. То-то-то
|
||||
2. Во-во-во
|
||||
|
||||
**Що очікували**
|
||||
Чіткий і стислий опис того, що ви очікували.
|
||||
|
||||
**Скріншоти**
|
||||
Якщо можливо, додайте скріншоти, щоб пояснити вашу проблему.
|
||||
|
||||
**Додатковий контекст**
|
||||
Додайте сюди будь-який інший контекст проблеми.
|
59
.forgejo/workflows/build.yml
Normal file
59
.forgejo/workflows/build.yml
Normal file
|
@ -0,0 +1,59 @@
|
|||
name: Build
|
||||
|
||||
# https://docs.github.com/en/actions/learn-github-actions/workflow-syntax-for-github-actions#concurrency
|
||||
concurrency:
|
||||
group: "build"
|
||||
cancel-in-progress: true
|
||||
|
||||
on:
|
||||
push:
|
||||
branches:
|
||||
# choose your default branch
|
||||
- master
|
||||
- main
|
||||
paths-ignore:
|
||||
- '*.md'
|
||||
|
||||
jobs:
|
||||
build:
|
||||
runs-on: docker
|
||||
steps:
|
||||
- name: Checkout
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
path: "src"
|
||||
|
||||
- name: Checkout builds
|
||||
uses: actions/checkout@master
|
||||
with:
|
||||
ref: "builds"
|
||||
path: "builds"
|
||||
|
||||
- name: Clean old builds
|
||||
run: rm $GITHUB_WORKSPACE/builds/*.cs3 || true
|
||||
|
||||
- name: Setup JDK 17
|
||||
uses: https://github.com/actions/setup-java@v3
|
||||
with:
|
||||
java-version: 17
|
||||
distribution: 'temurin'
|
||||
|
||||
- name: Setup Android SDK
|
||||
uses: https://github.com/android-actions/setup-android@v2
|
||||
|
||||
- name: Build Plugins
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE/src
|
||||
chmod +x gradlew
|
||||
./gradlew make makePluginsJson
|
||||
cp **/build/*.cs3 $GITHUB_WORKSPACE/builds
|
||||
cp build/plugins.json $GITHUB_WORKSPACE/builds
|
||||
|
||||
- name: Push builds
|
||||
run: |
|
||||
cd $GITHUB_WORKSPACE/builds
|
||||
git config --local user.email "actions@github.com"
|
||||
git config --local user.name "GitHub Actions"
|
||||
git add .
|
||||
git commit --amend -m "Build $GITHUB_SHA" || exit 0 # do not error if nothing to commit
|
||||
git push --force
|
Loading…
Reference in a new issue