build-linux.yml workflow added
This commit is contained in:
34
.github/workflows/build-linux.yml
vendored
Normal file
34
.github/workflows/build-linux.yml
vendored
Normal file
@@ -0,0 +1,34 @@
|
||||
name: Build Linux
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
build-linux:
|
||||
runs-on: ubuntu-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
|
||||
- name: Setup .NET
|
||||
uses: actions/setup-dotnet@v4
|
||||
with:
|
||||
dotnet-version: '9.0.x'
|
||||
|
||||
- name: Publish
|
||||
run: |
|
||||
dotnet publish src/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: actions/upload-artifact@v4
|
||||
with:
|
||||
name: clario-linux-x64
|
||||
path: Clario-linux-x64.tar.gz
|
||||
Reference in New Issue
Block a user