diff --git a/.github/workflows/blank.yml b/.github/workflows/blank.yml new file mode 100644 index 0000000..01502b1 --- /dev/null +++ b/.github/workflows/blank.yml @@ -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. diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e7a26ea..843027d 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -9,6 +9,7 @@ on: push: branches: # choose your default branch + - master - main paths-ignore: - "*.md" diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..843027d --- /dev/null +++ b/.github/workflows/main.yml @@ -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 diff --git a/Ngefilm/src/main/kotlin/com/ngefilm/Ngefilm.kt b/Ngefilm/src/main/kotlin/com/ngefilm/Ngefilm.kt index 9a0ee04..b18cae7 100644 --- a/Ngefilm/src/main/kotlin/com/ngefilm/Ngefilm.kt +++ b/Ngefilm/src/main/kotlin/com/ngefilm/Ngefilm.kt @@ -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