diff --git a/.forgejo/workflows/publish.yaml b/.forgejo/workflows/publish.yaml new file mode 100644 index 0000000..ddceb7b --- /dev/null +++ b/.forgejo/workflows/publish.yaml @@ -0,0 +1,29 @@ +name: Server AOT Publish + +on: + push: + branches: [ "main" ] + pull_request: + branches: [ "main" ] + +jobs: + publish: + + runs-on: dotnet:host + + steps: + - name: Checkout code + uses: actions/checkout@v4 + + - name: Restore dependencies + run: dotnet restore + + - name: Publish Native AOT + + run: dotnet publish ./LarpixServer/LarpixServer.csproj -r linux-x64 -c Release -o ./publish + + - name: Upload Artifact + uses: actions/upload-artifact@v4 + with: + name: native-binary + path: ./publish/ \ No newline at end of file