diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 89a122e..d7226fc 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -2,24 +2,18 @@ name: RetroIPTVGuide CI/CD on: push: - branches: [ main ] + branches: + - main + - dev + - feature/** workflow_dispatch: env: PYTHON_VERSION: "3.12" - DEPLOY_PATH: "/opt/retroiptvguide" jobs: - clone: - runs-on: ubuntu-latest - steps: - - uses: actions/checkout@v4 - - name: Clone confirmation - run: echo "โœ… Repository cloned successfully." - build: runs-on: ubuntu-latest - needs: clone steps: - uses: actions/checkout@v4 - name: Set up Python @@ -46,15 +40,17 @@ jobs: echo "๐Ÿงช Running syntax and basic runtime tests..." python -m unittest discover -s tests || echo "No tests found, skipping." - deploy: - runs-on: ubuntu-latest - needs: test - if: github.ref == 'refs/heads/main' - steps: - - uses: actions/checkout@v4 - - name: Simulate Deployment - run: | - echo "๐Ÿš€ Simulating deployment to ${{ env.DEPLOY_PATH }}" - mkdir -p ${{ env.DEPLOY_PATH }} - cp -r . ${{ env.DEPLOY_PATH }}/ - +# deploy: +# runs-on: ubuntu-latest +# needs: test +# if: github.ref == 'refs/heads/dev' +# steps: +# - uses: actions/checkout@v4 +# - name: Deploy to dev server +# uses: appleboy/scp-action@v0.1.4 +# with: +# host: ${{ secrets.DEPLOY_HOST }} +# username: ${{ secrets.DEPLOY_USER }} +# key: ${{ secrets.DEPLOY_SSH_KEY }} +# source: "." +# target: "/opt/retroiptvguide-dev"