Change ci yaml file for .NET app with tar result
Some checks failed
First CI / test (push) Failing after 10s
First CI / build (push) Successful in 1m42s

This commit is contained in:
Mateusz Kozieł
2025-11-20 16:27:01 +02:00
parent 4542b45682
commit cb876e35a4

View File

@@ -1,5 +1,5 @@
name: First CI name: First CI
on: [push] on: [ push ]
jobs: jobs:
build: build:
@@ -11,8 +11,18 @@ jobs:
dotnet-version: '8.0.x' dotnet-version: '8.0.x'
- run: dotnet restore - run: dotnet restore
- run: dotnet build - 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: test:
runs-on: ubuntu-latest runs-on: ubuntu-latest
steps: steps:
- name: trying to run - uses: actions/download-artifact@v3
run: dotnet run with:
name: app.tar
- run: tar xf app.tar/app.tar
- run: ./app/app