complete overhaul of the bot
This commit is contained in:
25
.gitea/workflows/deploy.yml
Normal file
25
.gitea/workflows/deploy.yml
Normal file
@ -0,0 +1,25 @@
|
||||
name: QuotesBot
|
||||
schedule:
|
||||
- cron '36 */4 * * *'
|
||||
permissions:
|
||||
contents: read
|
||||
jobs:
|
||||
deploy:
|
||||
runs: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v3
|
||||
- name: Setup Python
|
||||
uses: actions/setup-python@v3
|
||||
with:
|
||||
python-version: "3.13"
|
||||
- name: Install dependencies
|
||||
run: |
|
||||
python -m pip install --upgrade pip
|
||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
||||
- name: Run Script
|
||||
run:
|
||||
python app.py
|
||||
env:
|
||||
POST_TOKEN: ${{ secrets.POST_TOKEN }}
|
||||
POST_ENDPOINT: ${{ secrets.POST_ENDPOINT }}
|
||||
SOURCE_ENDPOINT: ${{ secrets.SOURCE_ENDPOINT }}
|
Reference in New Issue
Block a user