Skip to content
Open

Main #15

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
36 changes: 36 additions & 0 deletions .github/workflows/blank.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
# This is a basic workflow to help you get started with Actions

name: CI

# Controls when the workflow will run
on:
# Triggers the workflow on push or pull request events but only for the "main" branch
push:
branches: [ "main" ]
pull_request:
branches: [ "main" ]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# A workflow run is made up of one or more jobs that can run sequentially or in parallel
jobs:
# This workflow contains a single job called "build"
build:
# The type of runner that the job will run on
runs-on: ubuntu-latest

# Steps represent a sequence of tasks that will be executed as part of the job
steps:
# Checks-out your repository under $GITHUB_WORKSPACE, so your job can access it
- uses: actions/checkout@v4

# Runs a single command using the runners shell
- name: Run a one-line script
run: echo Hello, world!

# Runs a set of commands using the runners shell
- name: Run a multi-line script
run: |
echo Add other actions to build,
echo test, and deploy your project.
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ on:
push:
branches:
# choose your default branch
- master
- main
paths-ignore:
- "*.md"
Expand Down
78 changes: 78 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
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: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4.2.2
with:
path: "src"

- name: Checkout builds
uses: actions/checkout@v4.2.2
with:
ref: "builds"
path: "builds"

- name: Clean old builds
run: rm $GITHUB_WORKSPACE/builds/*.cs3 || true

- name: Setup JDK 22
uses: actions/setup-java@v4.6.0
with:
distribution: "adopt"
java-version: 22

- name: Setup Android SDK
uses: android-actions/setup-android@v3.2.2

- name: Access Secrets
run: |
cd $GITHUB_WORKSPACE/src
echo TMDB_API=${{ secrets.TMDB_API }} >> local.properties
echo DUMP_API=${{ secrets.DUMP_API }} >> local.properties
echo DUMP_KEY=${{ secrets.DUMP_KEY }} >> local.properties
echo ANIMASU_API=${{ secrets.ANIMASU_API }} >> local.properties
echo DUBBINDO_API=${{ secrets.DUBBINDO_API }} >> local.properties
echo GOMOV_API=${{ secrets.GOMOV_API }} >> local.properties
echo IDLIX_API=${{ secrets.IDLIX_API }} >> local.properties
echo KURAMANIME_API=${{ secrets.KURAMANIME_API }} >> local.properties
echo LAYARKACA_API=${{ secrets.LAYARKACA_API }} >> local.properties
echo NIMEGAMI_API=${{ secrets.NIMEGAMI_API }} >> local.properties
echo OPLOVERZ_API=${{ secrets.OPLOVERZ_API }} >> local.properties
echo OTAKUDESU_API=${{ secrets.OTAKUDESU_API }} >> local.properties
echo PENCURIMOVIE_API=${{ secrets.PENCURIMOVIE_API }} >> local.properties
echo SAMEHADAKU_API=${{ secrets.SAMEHADAKU_API }} >> local.properties
echo USEETV_API=${{ secrets.USEETV_API }} >> local.properties

- 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
2 changes: 1 addition & 1 deletion Ngefilm/src/main/kotlin/com/ngefilm/Ngefilm.kt
Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ngefilmnya urlnya ganti lagi: https://new16.ngefilm.site/

Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import com.lagradost.cloudstream3.mainPageOf

class Ngefilm : MainAPI() {

override var mainUrl = "https://new1.ngefilm.online"
override var mainUrl = "https://new14.ngefilm.site"

override var name = "Ngefilm"
override val hasMainPage = true
Expand Down