Skip to content

feat: add claude

feat: add claude #21

name: Deploy Bot to Railway
on:
push:
branches:
- main
pull_request:
types: [opened, synchronize, reopened]
jobs:
deploy:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: Setup Python
uses: actions/setup-python@v4
with:
python-version: '3.10'
cache: 'pip'
- name: Install Railway CLI
run: |
curl -fsSL https://railway.app/install.sh | sh
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install -r requirements.txt
- name: Run tests
run: |
pytest tests/test_manual.py
env:
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
CLAUDE_KEY: ${{ secrets.CLAUDE_KEY }}
- name: Deploy to Railway
run: |
railway up --service ${{ secrets.RAILWAY_SERVICE_NAME }}
env:
RAILWAY_TOKEN: ${{ secrets.RAILWAY_TOKEN }}
TELEGRAM_TOKEN: ${{ secrets.TELEGRAM_TOKEN }}
CLAUDE_KEY: ${{ secrets.CLAUDE_KEY }}
permissions:
contents: read