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:
parent
5169aede88
commit
ddfae61fdc
36
.gitea/workflows/publish.yaml
Normal file
36
.gitea/workflows/publish.yaml
Normal 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
|
||||||
Loading…
Reference in New Issue
Block a user