Files
AlquilaFacil/.gitea/workflows/build.yml
fedpo 82e6025ab0
Some checks failed
Build .NET Project / build (push) Failing after 1m36s
Actualizar .gitea/workflows/build.yml
2026-02-17 14:32:20 -03:00

45 lines
1.0 KiB
YAML

name: Build .NET Project
on:
push:
branches:
- main
- develop
- release
pull_request:
branches:
- main
jobs:
build:
runs-on: ubuntu-latest
env:
GITEA_SERVER_URL: https://fedesrv.ddns.net/git
GITHUB_SERVER_URL: https://fedesrv.ddns.net/git
steps:
- name: Checkout código
run: |
git clone https://fedesrv.ddns.net/git/${{ github.repository }}.git .
git checkout ${{ github.sha }}
- name: Setup .NET SDK
uses: actions/setup-dotnet@v4
with:
dotnet-version: '8.0.x' # Cambia a tu versión (6.0, 7.0, 8.0...)
- name: Restaurar dependencias
run: dotnet restore
- name: Compilar
run: dotnet build --configuration Release --no-restore
- name: Publicar
run: dotnet publish --configuration Release --output ./publish --no-restore
- name: Subir artefacto
uses: actions/upload-artifact@v4
with:
name: AlquilaFacil-build
path: ./publish