Skip to content
Merged
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
3 changes: 0 additions & 3 deletions .editorconfig

This file was deleted.

29 changes: 15 additions & 14 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
# Optional token for API calls to the backend
BACKEND_API_TOKEN=
API_TOKEN=

# Database connection details
DB_URL=jdbc:h2:./persistence/revanced-api
DB_USER=
DB_PASSWORD=
GITHUB_TOKEN=

# Digest auth to issue JWT tokens in the format SHA256("username:ReVanced:password")
AUTH_SHA256_DIGEST=
ORGANIZATION=revanced

# JWT configuration for authenticated API endpoints
JWT_SECRET=
JWT_ISSUER=
JWT_VALIDITY_IN_MIN=
PATCHES_REPO=revanced-patches
PATCHES_ASSET_REGEX=rvp$
PATCHES_SIGNATURE_ASSET_REGEX=asc$
PATCHES_PUBLIC_KEY_FILE=keys

# Logging level for the application
LOG_LEVEL=INFO
MANAGER_REPO=revanced-manager
MANAGER_ASSET_REGEX=apk$
MANAGER_DOWNLOADERS_REPO=revanced-manager-downloaders
MANAGER_DOWNLOADERS_ASSET_REGEX=apk$

CONTRIBUTORS_REPOS=revanced-patcher:ReVanced Patcher,revanced-patches:ReVanced Patches,revanced-website:ReVanced Website,revanced-cli:ReVanced CLI,revanced-manager:ReVanced Manager

API_VERSION=5
9 changes: 0 additions & 9 deletions .gitattributes

This file was deleted.

7 changes: 3 additions & 4 deletions .github/ISSUE_TEMPLATE/bug_report.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
name: 🐞 Bug report
description: Report a bug or an issue.
title: 'bug: '
labels: ['Bug report']
title: "bug: "
labels: ["Bug report"]
body:
- type: markdown
attributes:
Expand Down Expand Up @@ -81,11 +81,10 @@ body:
- Add steps to reproduce the bug if possible (Step 1. ... Step 2. ...)
- Add images and videos if possible
validations:
required: true
required: true
- type: textarea
attributes:
label: Error logs
description: Exceptions can be captured by running `logcat | grep AndroidRuntime` in a shell.
render: shell
- type: textarea
attributes:
Expand Down
25 changes: 0 additions & 25 deletions .github/workflows/build_pull_request.yml

This file was deleted.

82 changes: 82 additions & 0 deletions .github/workflows/deploy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,82 @@
name: Deploy

on:
workflow_dispatch:
push:
branches:
- main
- dev

jobs:
deploy:
name: Deploy
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v6

- name: Cache dependencies
uses: actions/cache@v4
with:
path: "**/node_modules"
key: ${{ runner.os }}-bun-${{ hashFiles('**/bun.lock') }}
restore-keys: ${{ runner.os }}-bun-

- name: Setup Node.js
uses: actions/setup-node@v4
with:
node-version: "lts/*"

- name: Setup Bun
uses: oven-sh/setup-bun@v2

- name: Install dependencies
run: bun i --frozen-lockfile

- name: Publish
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: bunx semantic-release

Comment thread
oSumAtrIX marked this conversation as resolved.
- name: Deploy
if: github.ref == 'refs/heads/main'
uses: cloudflare/wrangler-action@v3
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
preCommands: |
echo "$ABOUT_JSON" > about.json
echo "$KEYS" > data/keys
bun run db:migration:apply --remote
command: deploy
secrets: |
API_TOKEN
GITHUB_TOKEN
ORGANIZATION
PATCHES_REPO
PATCHES_ASSET_REGEX
PATCHES_SIGNATURE_ASSET_REGEX
PATCHES_PUBLIC_KEY_FILE
MANAGER_REPO
MANAGER_ASSET_REGEX
MANAGER_DOWNLOADERS_REPO
MANAGER_DOWNLOADERS_ASSET_REGEX
CONTRIBUTORS_REPOS
API_VERSION
env:
API_TOKEN: ${{ secrets.API_TOKEN }}
GITHUB_TOKEN: ${{ secrets.READ_REPOSITORIES_GITHUB_TOKEN }}
ORGANIZATION: ${{ vars.ORGANIZATION }}
PATCHES_REPO: ${{ vars.PATCHES_REPO }}
PATCHES_ASSET_REGEX: ${{ vars.PATCHES_ASSET_REGEX }}
PATCHES_SIGNATURE_ASSET_REGEX: ${{ vars.PATCHES_SIGNATURE_ASSET_REGEX }}
PATCHES_PUBLIC_KEY_FILE: ${{ vars.PATCHES_PUBLIC_KEY_FILE }}
MANAGER_REPO: ${{ vars.MANAGER_REPO }}
MANAGER_ASSET_REGEX: ${{ vars.MANAGER_ASSET_REGEX }}
MANAGER_DOWNLOADERS_REPO: ${{ vars.MANAGER_DOWNLOADERS_REPO }}
MANAGER_DOWNLOADERS_ASSET_REGEX: ${{ vars.MANAGER_DOWNLOADERS_ASSET_REGEX }}
CONTRIBUTORS_REPOS: ${{ vars.CONTRIBUTORS_REPOS }}
API_VERSION: ${{ vars.API_VERSION }}
ABOUT_JSON: ${{ vars.ABOUT_JSON }}
KEYS: ${{ vars.KEYS }}
2 changes: 1 addition & 1 deletion .github/workflows/open_pull_request.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
uses: actions/checkout@v6

- name: Open pull request
uses: repo-sync/pull-request@v2
Expand Down
87 changes: 0 additions & 87 deletions .github/workflows/release.yml

This file was deleted.

48 changes: 4 additions & 44 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,46 +1,6 @@
.gradle
build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/

### STS ###
.apt_generated
.classpath
.factorypath
.project
.settings
.springBeans
.sts4-cache
bin/
!**/src/main/**/bin/
!**/src/test/**/bin/

### IntelliJ IDEA ###
.idea
*.iws
*.iml
*.ipr
out/
!**/src/main/**/out/
!**/src/test/**/out/

### NetBeans ###
/nbproject/private/
/nbbuild/
/dist/
/nbdist/
/.nb-gradle/

### VS Code ###
.vscode/

### Project ###
.env
persistence/
configuration.toml
docker-compose.yml
patches-public-key.asc
node_modules/
static/
about.json
.wrangler/
.dev.vars
.env
about.json
2 changes: 2 additions & 0 deletions .gradle/config.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
#Tue Mar 10 19:39:02 CET 2026
java.home=C\:\\Users\\oSumAtrIX\\AppData\\Local\\Programs\\Android Studio\\jbr
46 changes: 9 additions & 37 deletions .releaserc
Original file line number Diff line number Diff line change
Expand Up @@ -16,55 +16,27 @@
],
"@semantic-release/release-notes-generator",
"@semantic-release/changelog",
"gradle-semantic-release-plugin",
[
"@semantic-release/git",
"@semantic-release/npm",
{
"assets": [
"CHANGELOG.md",
"gradle.properties"
],
"message": "chore: Release v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
"npmPublish": false
}
],
[
"@semantic-release/github",
"@semantic-release/git",
{
"assets": [
{
"path": "build/libs/*"
}
],
"successComment": false
}
],
[
"@codedependant/semantic-release-docker",
{
"dockerImage": "revanced-api",
"dockerTags": [
"{{#if prerelease.[0]}}dev{{else}}main{{/if}}",
"{{#unless prerelease.[0]}}latest{{/unless}}",
"{{version}}"
],
"dockerRegistry": "ghcr.io",
"dockerProject": "revanced",
"dockerPlatform": [
"linux/amd64",
"linux/arm64"
"CHANGELOG.md",
"package.json"
],
"dockerArgs": {
"GITHUB_ACTOR": null,
"GITHUB_TOKEN": null,
}
"message": "chore: Release v${nextRelease.version} [skip ci]\n\n${nextRelease.notes}"
}
],
[
"@saithodev/semantic-release-backmerge",
"@kilianpaquier/semantic-release-backmerge",
{
"backmergeBranches": [{"from": "main", "to": "dev"}],
"clearWorkspace": true
"targets": [{ "from": "main", "to": "dev" }]
}
]
]
}
}
Loading