ci(gitea): Automate building of linux artifact

Automate the building of the Linux artifact and creation of a release on
new tags
This commit is contained in:
Robert Morrison 2026-01-04 02:10:51 +00:00
parent 5169aede88
commit ddfae61fdc
Signed by: robert
GPG Key ID: 73E012EB3F4EC696

View File

@ -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