seperated github and gitea workflows
This commit is contained in:
41
.gitea/workflows/build-linux.yml
Normal file
41
.gitea/workflows/build-linux.yml
Normal file
@@ -0,0 +1,41 @@
|
|||||||
|
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
|
||||||
2
.github/workflows/build-linux.yml
vendored
2
.github/workflows/build-linux.yml
vendored
@@ -33,7 +33,7 @@ jobs:
|
|||||||
run: tar -czf Clario-linux-x64.tar.gz -C ./publish/linux-x64 .
|
run: tar -czf Clario-linux-x64.tar.gz -C ./publish/linux-x64 .
|
||||||
|
|
||||||
- name: Upload artifact
|
- name: Upload artifact
|
||||||
uses: https://code.forgejo.org/forgejo/upload-artifact@v4
|
uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: Clario-linux-x64
|
name: Clario-linux-x64
|
||||||
path: ./publish/linux
|
path: ./publish/linux
|
||||||
|
|||||||
Reference in New Issue
Block a user