Compare commits
12 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| b583d2006d | |||
| 82e6025ab0 | |||
| 462df2ffb2 | |||
| d5eca80290 | |||
| fbae4acee3 | |||
| 05b9d69d2c | |||
| 72f9681c37 | |||
| 094ed669c2 | |||
| ca9de845c8 | |||
| f98667796f | |||
| ebab0215c7 | |||
| 51c1c959ad |
44
.gitea/workflows/build.yml
Normal file
44
.gitea/workflows/build.yml
Normal file
@@ -0,0 +1,44 @@
|
||||
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@v3
|
||||
with:
|
||||
name: AlquilaFacil-build
|
||||
path: ./publish
|
||||
Reference in New Issue
Block a user