From ddfae61fdc0f8f1fcdd441e72565141d9322dc13 Mon Sep 17 00:00:00 2001 From: Robert Morrison Date: Sun, 4 Jan 2026 02:10:51 +0000 Subject: [PATCH] ci(gitea): Automate building of linux artifact Automate the building of the Linux artifact and creation of a release on new tags --- .gitea/workflows/publish.yaml | 36 +++++++++++++++++++++++++++++++++++ 1 file changed, 36 insertions(+) create mode 100644 .gitea/workflows/publish.yaml diff --git a/.gitea/workflows/publish.yaml b/.gitea/workflows/publish.yaml new file mode 100644 index 0000000..95da218 --- /dev/null +++ b/.gitea/workflows/publish.yaml @@ -0,0 +1,36 @@ +name: Build and Generate Release Artifact + +on: + push: + tags: + - "*" + +jobs: + build: + runs-on: ubuntu-latest + + steps: + - name: Checkout + uses: actions/checkout@v5 + + - name: Build csSiteGen + uses: actions/setup-dotnet@v3 + with: + dotnet-version: 10.x + -run: | + dotnet publish csSiteGen.csproj \ + -c Release \ + -r linux-x64 \ + --self-contained true \ + /p:PublishSingleFile=true \ + /p:PublishTrimmed=true \ + -o ./publish + + - name: Create Gitea Release + id: create_release + uses: akkuman/gitea-release-action@1 + env: + NODE_OPTIONS: '--experimental-fetch' + with: + files: |- + ./publish/csSiteGen