Automate the building of the Linux artifact and creation of a release on new tags
37 lines
775 B
YAML
37 lines
775 B
YAML
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
|