diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 82dfb413e..a95b2892f 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -12,7 +12,7 @@ on: HEROKU_EMAIL: description: "Heroku email address" required: true - HK_TEAM_NAME: + HEROKU_TEAM_NAME: description: "Heroku Team Name" required: false BOT_TOKEN: @@ -36,16 +36,14 @@ jobs: steps: - name: Checkout deploy branch uses: actions/checkout@v2 - with: - ref: "refs/heads/deploy" - name: Deploy to Heroku - uses: 5hojib/heroku-deploy-action@v1.0.1 + uses: 5hojib/heroku-deploy-action@v2 with: heroku_api_key: ${{inputs.HEROKU_API_KEY}} heroku_app_name: ${{inputs.HEROKU_APP_NAME}} heroku_email: ${{inputs.HEROKU_EMAIL}} - team: ${{ inputs.HK_TEAM_NAME != '' && format('team={0}', inputs.HK_TEAM_NAME) || '' }} + team: ${{ inputs.HEROKU_TEAM_NAME != '' && format('team={0}', inputs.HEROKU_TEAM_NAME) || '' }} usedocker: true docker_heroku_process_type: web stack: "container" diff --git a/Dockerfile b/Dockerfile new file mode 100644 index 000000000..25d67d90e --- /dev/null +++ b/Dockerfile @@ -0,0 +1,10 @@ +FROM 5hojib/aeon:latest + +WORKDIR /usr/src/app +RUN chmod 777 /usr/src/app + +COPY requirements.txt . +RUN pip3 install --break-system-packages --ignore-installed --no-cache-dir -r requirements.txt + +COPY . . +CMD ["bash", "start.sh"] diff --git a/README.md b/README.md index 8757425ee..d40a42a84 100644 --- a/README.md +++ b/README.md @@ -14,7 +14,6 @@ 1. **Fork and Star the Repository** - Start by forking and starring this repository. - - When forking, ensure that the option "Copy the default branch only" is unchecked before forking the repository. 2. **Navigate to Your Forked Repository** - Once the repository is forked, navigate to your forked repository. @@ -36,6 +35,7 @@ - `HEROKU_APP_NAME` - `HEROKU_EMAIL` - `HEROKU_API_KEY` + - `HEROKU_TEAM_NAME` optional for Team user. - Run the action workflow. 5. **Finalize the Deployment** diff --git a/requirements.txt b/requirements.txt new file mode 100644 index 000000000..9777d75d5 --- /dev/null +++ b/requirements.txt @@ -0,0 +1,43 @@ +aiohttp +aiofiles +aioshutil +anytree==2.8.0 +apscheduler +aria2p +asyncio +beautifulsoup4 +bencoding +cinemagoer +cloudscraper +dnspython +electrogram +feedparser +flask +gevent +google-api-python-client +google-auth-httplib2 +google-auth-oauthlib +gunicorn +httpx +langcodes +lxml +motor +mutagen +markdown +natsort +pillow +psutil +pybase64 +pycountry +python-dotenv +pyshorteners +python-magic +qbittorrent-api +requests +speedtest-cli +telegraph +tenacity +uv +uvloop +xattr +yt-dlp[default] diff --git a/sample_config.env b/sample_config.env new file mode 100644 index 000000000..0abbbb333 --- /dev/null +++ b/sample_config.env @@ -0,0 +1,7 @@ +OWNER_ID = "" +TELEGRAM_API = "" +TELEGRAM_HASH = "" +DATABASE_URL = "" + +UPSTREAM_REPO = "https://github.com/5hojib/Aeon" +UPSTREAM_BRANCH = "main" \ No newline at end of file