diff --git a/.github/workflows/build-linux.yml b/.github/workflows/build-linux.yml new file mode 100644 index 0000000..92c89c1 --- /dev/null +++ b/.github/workflows/build-linux.yml @@ -0,0 +1,34 @@ +name: Build Linux + +on: + push: + branches: [main] + +jobs: + build-linux: + runs-on: ubuntu-latest + steps: + - uses: actions/checkout@v4 + + - name: Setup .NET + uses: actions/setup-dotnet@v4 + with: + dotnet-version: '9.0.x' + + - name: Publish + run: | + dotnet publish src/Clario.Desktop/Clario.Desktop.csproj \ + -r linux-x64 \ + -c Release \ + --self-contained true \ + -p:PublishSingleFile=true \ + -o ./publish/linux-x64 + + - name: Package as tar.gz + run: tar -czf Clario-linux-x64.tar.gz -C ./publish/linux-x64 . + + - name: Upload artifact + uses: actions/upload-artifact@v4 + with: + name: clario-linux-x64 + path: Clario-linux-x64.tar.gz \ No newline at end of file