name: Build Automatico on: push: branches: - main pull_request: branches: - main workflow_dispatch: jobs: build: runs-on: ubuntu-latest steps: - name: Baixar codigo uses: actions/checkout@v4 - name: Verificar ambiente run: | echo "Gitea Actions funcionando!" echo "Repositorio: ${{ github.repository }}" echo "Branch: ${{ github.ref_name }}" - name: Verificar projeto run: | if [ -f package.json ]; then echo "Projeto Node.js detectado" elif [ -f composer.json ]; then echo "Projeto PHP detectado" elif [ -f requirements.txt ]; then echo "Projeto Python detectado" elif [ -f Dockerfile ]; then echo "Projeto Docker detectado" else echo "Projeto sem build configurado" fi - name: Finalizar run: echo "Verificacao concluida!"