diff --git a/.gitea/workflows/ci.yaml b/.gitea/workflows/ci.yaml index 1ff60cd..42a43ed 100644 --- a/.gitea/workflows/ci.yaml +++ b/.gitea/workflows/ci.yaml @@ -1,72 +1,29 @@ -name: Build and Release +name: Tar y Zip por version on: push: tags: - - 'v*' + - 'v*' # se ejecuta al hacer push de tags tipo v1.0.0 jobs: - build-and-release: - runs-on: ubuntu-latest + archive: + runs-on: ubuntu-22.04 + steps: - name: Checkout uses: actions/checkout@v4 - - name: Ejecutar build + - name: Crear tar y zip de la version run: | - mkdir -p release-dir - echo "# Documento convertido" > release-dir/documento.md - echo "" >> release-dir/documento.md - cat archivo.txt >> release-dir/documento.md - echo "Release $(date +%Y-%m-%d)" > release-dir/version.txt - echo "Build completado" - ls -lh release-dir/ + mkdir -p artifacts - - name: Crear release - env: - TOKEN: ${{ secrets.RELEASE_TOKEN }} - run: | + # Nombre de la tag que ha disparado el workflow (ej: v1.0.0) TAG="${GITHUB_REF_NAME}" - - JSON_PAYLOAD=$(cat <