Co-Authored-By: Mạnh Dương <46205571+luxysiv@users.noreply.github.com>
This commit is contained in:
Fioren
2023-05-04 02:16:50 +07:00
parent f0693179ba
commit 8ecd019a42
46 changed files with 399 additions and 852 deletions

View File

@@ -1,46 +0,0 @@
# Sample workflow for building and deploying a Jekyll site to GitHub Pages
name: Deploy GitHub Pages
on:
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:
# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write
# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false
jobs:
# Build job
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Pages
uses: actions/configure-pages@v3
- name: Build with Jekyll
uses: actions/jekyll-build-pages@v1
with:
source: ./
destination: ./_site
- name: Upload artifact
uses: actions/upload-pages-artifact@v1
# Deployment job
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
needs: build
steps:
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v2

View File

@@ -1,218 +0,0 @@
name: TEST Patch Revanced & Revanced Extended
on:
schedule:
- cron: "0 0 */5 * *"
workflow_dispatch:
jobs:
patch:
name: Patch Revanced & Revanced Extended
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up jdk
uses: actions/setup-java@v3.10.0
with:
distribution: 'zulu'
java-version: '17'
- name: Patch Youtube Revanced & Revanced Extended non-root
run: bash src/yt/patch.sh
- name: Patch Youtube Music Revanced & Revanced Extended non-root
run: bash src/ytm/patch.sh
- name: Patch Messenger Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/messenger/patch.sh
- name: Patch Tiktok Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/tiktok/patch.sh
- name: Patch Twitch Revanced
run: bash src/twitch/patch.sh
- name: Patch Twitter Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/twitter/patch.sh
- name: Patch Instagram Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/instagram/patch.sh
- name: Generate Changelog
run: |
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTRVVERSION=$(jq -r '.[] | select(.name == "video-ads") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
rm -rf patches.json
curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTRVEVERSION=$(jq -r '.[] | select(.name == "hide-general-ads") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
rm -rf patches.json
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTMRVVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
YTMRVEVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
rm -rf patches.json
echo "[Change Log](https://github.com/revanced/revanced-patches/releases/latest)
**Download Below** :point_down:
" > ${{ github.workspace }}-CHANGELOG-rv.txt
echo "[Change Log](https://github.com/inotia00/revanced-patches/releases/latest)
**Download Below** :point_down:
" > ${{ github.workspace }}-CHANGELOG-rve.txt
echo "INFO-YT-RV=Youtube Revanced v${YTRVVERSION}" >> $GITHUB_ENV
echo "INFO-YT-RVE=Youtube Revanced Extended v${YTRVEVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RV=Youtube Music Revanced v${YTMRVVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RVE=Youtube Music Revanced Extended v${YTMRVEVERSION}" >> $GITHUB_ENV
- uses: vishnudxb/cancel-workflow@v1.2
if: failure()
with:
repo: octocat/hello-world
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}
- name: Delete Release
uses: dev-drprasad/delete-older-releases@v0.2.1
with:
repo: ${{ github.repository }}
keep_latest: 0
delete_tags: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Music Revanced
uses: softprops/action-gh-release@v1
with:
files: ytm-revanced.apk
name: ${{ env.INFO-YTM-RV }}
tag_name: YTM-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Music Revanced Extended
uses: softprops/action-gh-release@v1
with:
files: ytm-revanced-extended.apk
name: ${{ env.INFO-YTM-RVE }}
tag_name: YTM-Revanced-Extended
body_path: ${{ github.workspace }}-CHANGELOG-rve.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Revanced
uses: softprops/action-gh-release@v1
with:
files: yt-revanced.apk
name: ${{ env.INFO-YT-RV }}
tag_name: YT-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Revanced Extended
uses: softprops/action-gh-release@v1
with:
files: yt-revanced-extended.apk
name: ${{ env.INFO-YT-RVE }}
tag_name: YT-Revanced-Extended
body_path: ${{ github.workspace }}-CHANGELOG-rve.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Tiktok Revanced
uses: softprops/action-gh-release@v1
with:
files: Tiktok.apk
name: "Tiktok"
tag_name: Tiktok-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Twitch Revanced
uses: softprops/action-gh-release@v1
with:
files: Twitch.apk
name: "Twitch"
tag_name: Twitch-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Facebook Messenger Revanced
uses: softprops/action-gh-release@v1
with:
files: Messenger.apk
name: "Facebook Messenger"
tag_name: Facebook-Messenger-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Twitter Revanced
uses: softprops/action-gh-release@v1
with:
files: Twitter.apk
name: "Twitter"
tag_name: Twitter-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Instagram Revanced
uses: softprops/action-gh-release@v1
with:
files: Instagram.apk
name: "Instagram"
tag_name: Instagram-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 5

View File

@@ -1,9 +1,12 @@
name: Patch Revanced & Revanced Extended
name: Patch Revanced
on:
# push:
schedule:
- cron: "0 */4 * * *"
workflow_dispatch:
jobs:
patch:
name: Patch Revanced & Revanced Extended
patch1:
name: Patch Revanced
permissions: write-all
runs-on: ubuntu-latest
steps:
@@ -14,176 +17,96 @@ jobs:
with:
distribution: 'zulu'
java-version: '17'
- name: Patch Youtube Revanced & Revanced Extended non-root
run: bash src/yt/patch.sh
- name: Patch Youtube Music Revanced & Revanced Extended non-root
run: bash src/ytm/patch.sh
- name: Patch Messenger Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/messenger/patch.sh
- name: Patch Instagram Revanced
run: bash src/instagram/patch.sh
- name: Patch Tiktok Revanced
env:
GMAIL: ${{ secrets.GMAIL }}
PASSWORD: ${{ secrets.PASSWORD }}
run: |
echo "[google]
username = $GMAIL
password = $PASSWORD" >> ~/apkeep.ini
bash src/tiktok/patch.sh
- name: Patch Twitch Revanced
run: bash src/twitch/patch.sh
- name: Generate Changelog
run: |
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTRVVERSION=$(jq -r '.[] | select(.name == "video-ads") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
rm -rf patches.json
- name: Patch apk
run: bash src/build/build-rv.sh
- name: Generate release info
run: |
echo "
**Change log** :point_down:
[Revanced](https://github.com/revanced/revanced-patches/releases/latest)
[Revanced Extended](https://github.com/inotia00/revanced-patches/releases/latest)
"> ${{ github.workspace }}-CHANGELOG.txt
curl -s https://api.github.com/repos/inotia00/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTRVEVERSION=$(jq -r '.[] | select(.name == "hide-general-ads") | .compatiblePackages[] | select(.name == "com.google.android.youtube") | .versions[-1]' patches.json)
rm -rf patches.json
curl -s https://api.github.com/repos/revanced/revanced-patches/releases/latest \
| grep "browser_download_url.*json" \
| cut -d : -f 2,3 \
| tr -d \" \
| wget -qi -
YTMRVVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
YTMRVEVERSION=$(jq -r '.[] | select(.name == "hide-get-premium") | .compatiblePackages[] | select(.name == "com.google.android.apps.youtube.music") | .versions[-1]' patches.json)
rm -rf patches.json
echo "[Change Log](https://github.com/revanced/revanced-patches/releases/latest)
**Download Below** :point_down:
" > ${{ github.workspace }}-CHANGELOG-rv.txt
echo "[Change Log](https://github.com/inotia00/revanced-patches/releases/latest)
**Download Below** :point_down:
" > ${{ github.workspace }}-CHANGELOG-rve.txt
echo "INFO-YT-RV=Youtube Revanced v${YTRVVERSION}" >> $GITHUB_ENV
echo "INFO-YT-RVE=Youtube Revanced Extended v${YTRVEVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RV=Youtube Music Revanced v${YTMRVVERSION}" >> $GITHUB_ENV
echo "INFO-YTM-RVE=Youtube Music Revanced Extended v${YTMRVEVERSION}" >> $GITHUB_ENV
- uses: vishnudxb/cancel-workflow@v1.2
if: failure()
- name: Release
uses: softprops/action-gh-release@v0.1.15
with:
repo: octocat/hello-world
workflow_id: ${{ github.run_id }}
access_token: ${{ github.token }}
files: |
./build/*
revanced-version.txt
name: Revanced & Revanced Extended
tag_name: all
body_path: ${{ github.workspace }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete Release
- name: Delete older releases
uses: dev-drprasad/delete-older-releases@v0.2.1
with:
repo: ${{ github.repository }}
keep_latest: 0
delete_tags: false
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Music Revanced
uses: softprops/action-gh-release@v1
with:
files: ytm-revanced.apk
name: ${{ env.INFO-YTM-RV }}
tag_name: YTM-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
keep_latest: 1
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Music Revanced Extended
uses: softprops/action-gh-release@v1
with:
files: ytm-revanced-extended.apk
name: ${{ env.INFO-YTM-RVE }}
tag_name: YTM-Revanced-Extended
body_path: ${{ github.workspace }}-CHANGELOG-rve.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Revanced
uses: softprops/action-gh-release@v1
with:
files: yt-revanced.apk
name: ${{ env.INFO-YT-RV }}
tag_name: YT-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Youtube Revanced Extended
uses: softprops/action-gh-release@v1
with:
files: yt-revanced-extended.apk
name: ${{ env.INFO-YT-RVE }}
tag_name: YT-Revanced-Extended
body_path: ${{ github.workspace }}-CHANGELOG-rve.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Tiktok Revanced
uses: softprops/action-gh-release@v1
with:
files: Tiktok.apk
name: "Tiktok"
tag_name: Tiktok-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Twitch Revanced
uses: softprops/action-gh-release@v1
with:
files: Twitch.apk
name: "Twitch"
tag_name: Twitch-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Facebook Messenger Revanced
uses: softprops/action-gh-release@v1
with:
files: Messenger.apk
name: "Facebook Messenger"
tag_name: Facebook-Messenger-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Release Instagram Revanced
uses: softprops/action-gh-release@v1
with:
files: Instagram.apk
name: "Instagram"
tag_name: Instagram-Revanced
body_path: ${{ github.workspace }}-CHANGELOG-rv.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 5
keep_minimum_runs: 10
patch2:
name: Patch Revanced Extended
permissions: write-all
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up jdk
uses: actions/setup-java@v3.10.0
with:
distribution: 'zulu'
java-version: '17'
- name: Patch apk
run: bash src/build/build-rve.sh
- name: Generate release info
run: |
echo "
**Change log** :point_down:
[Revanced](https://github.com/revanced/revanced-patches/releases/latest)
[Revanced Extended](https://github.com/inotia00/revanced-patches/releases/latest)
"> ${{ github.workspace }}-CHANGELOG.txt
- name: Release
uses: softprops/action-gh-release@v0.1.15
with:
files: |
./build/*
revanced-extended-version.txt
name: Revanced & Revanced Extended
tag_name: all
body_path: ${{ github.workspace }}-CHANGELOG.txt
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete older releases
uses: dev-drprasad/delete-older-releases@v0.2.1
with:
keep_latest: 1
delete_tags: true
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Delete workflow runs
uses: Mattraks/delete-workflow-runs@v2
with:
token: ${{ github.token }}
repository: ${{ github.repository }}
retain_days: 0
keep_minimum_runs: 15