41 lines
881 B
YAML
41 lines
881 B
YAML
name: Build Linux
|
|
|
|
on:
|
|
workflow_dispatch:
|
|
push:
|
|
tags:
|
|
- 'v*'
|
|
|
|
jobs:
|
|
build:
|
|
runs-on: ubuntu-latest
|
|
|
|
steps:
|
|
- name: Checkout
|
|
uses: actions/checkout@v4
|
|
|
|
- name: Setup .NET
|
|
uses: actions/setup-dotnet@v4
|
|
with:
|
|
dotnet-version: '8.0.x'
|
|
|
|
- name: Publish
|
|
run: |
|
|
dotnet publish 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: https://code.forgejo.org/forgejo/upload-artifact@v4
|
|
with:
|
|
name: Clario-linux-x64
|
|
path: ./publish/linux
|
|
|
|
retention-days: 7 |