diff --git a/.gitea/workflows/build.yaml b/.gitea/workflows/build.yaml new file mode 100644 index 0000000..7828098 --- /dev/null +++ b/.gitea/workflows/build.yaml @@ -0,0 +1,39 @@ +name: Build and publish mistserver + +on: + push: + branches: + - main + +jobs: + build: + runs-on: alpine-linux + steps: + - name: checkout + uses: actions/checkout@v4 + + - name: build and push database + run: | + docker buildx build \ + --platform=linux/amd64,linux/arm64 \ + -t docker.mistox.net/eventoscaudillos-sql \ + --push \ + ./database + + - name: Setup .NET SDK + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '10.0.x' + cache: true + + - name: Restore Dependencies + run: dotnet restore + + - name: Dotnet Publish + run: dotnet publish --configuration Release --output ./publish --no-restore + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: dotnet-app-release + path: ./publish \ No newline at end of file