This commit is contained in:
Andrey Kondratev
2025-08-29 15:33:33 +05:00
parent 2931ba9847
commit 4dfd11e3fb
2 changed files with 6 additions and 2 deletions

View File

@@ -96,17 +96,21 @@ jobs:
- name: Deploy to server - name: Deploy to server
uses: appleboy/ssh-action@v1.0.0 uses: appleboy/ssh-action@v1.0.0
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
GITHUB_ACTOR: ${{ github.actor }}
with: with:
host: ${{ secrets.HOST }} host: ${{ secrets.HOST }}
username: ${{ secrets.USERNAME }} username: ${{ secrets.USERNAME }}
key: ${{ secrets.SSH_KEY }} key: ${{ secrets.SSH_KEY }}
port: ${{ secrets.PORT }} port: ${{ secrets.PORT }}
envs: GITHUB_TOKEN,GITHUB_ACTOR
script: | script: |
cd /opt/quixotic cd /opt/quixotic
git pull origin main git pull origin main
# Login to GitHub Container Registry # Login to GitHub Container Registry
echo ${{ secrets.GITHUB_TOKEN }} | docker login ghcr.io -u ${{ github.actor }} --password-stdin echo $GITHUB_TOKEN | docker login ghcr.io -u $GITHUB_ACTOR --password-stdin
# Deploy using production compose # Deploy using production compose
docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull docker-compose -f docker-compose.yml -f docker-compose.prod.yml pull

View File

@@ -212,7 +212,7 @@ class QuixoticApp {
public async convertVideo(videoId: string, title: string, url: string): Promise<void> { public async convertVideo(videoId: string, title: string, url: string): Promise<void> {
console.log('🎵 CONVERT VIDEO CALLED:', { videoId, title, url }); console.log('🎵 CONVERT VIDEO CALLED:', { videoId, title, url });
console.log('🔧 Telegram WebApp available:', !!this.tg); console.log('🔧 Telegram WebApp available:', !!this.tg);
const videoElement = (event as any)?.currentTarget as HTMLElement; const videoElement = document.activeElement as HTMLElement;
if (videoElement) { if (videoElement) {
videoElement.classList.add('tg-list-item--converting'); videoElement.classList.add('tg-list-item--converting');
} }