From 2012fb9dcbb8db4ee1873b5f58c798d8f2ed14f6 Mon Sep 17 00:00:00 2001 From: BendeeBoo Date: Tue, 21 Nov 2023 14:42:29 +0100 Subject: [PATCH] dotnet 2 --- .gitea/workflows/ci.yml | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index c5eb827..3f2ec70 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -11,7 +11,18 @@ jobs: dotnet-version: '6.0.x' - run: dotnet restore - run: dotnet build + - run: dotnet test + - run: dotnet publish -o app -r linux-x64 --sc /p:PublishSingleFile=true,AssemblyName=app + - run: tar cf app.tar app/ + - uses: actions/upload-artifact@v3 + with: + name: app.tar + path: app.tar + test: steps: - - name: trying to run - run: dotnet run \ No newline at end of file + - uses: actions/download-artifact@v3 + with: + name: app.tar + - run: tar xf app.tar/app.tar + - run: ./app/app \ No newline at end of file