Modify ci pipeline

This commit is contained in:
SaWyyy 2024-11-25 10:39:30 +01:00
parent 335aaad215
commit efb1d37e15

View File

@ -11,7 +11,17 @@ jobs:
dotnet-version: '8.0.x' dotnet-version: '8.0.x'
- run: dotnet restore - run: dotnet restore
- run: dotnet build - run: dotnet build
test: - run: dotnet test
steps: - run: dotnet publish -o app -r linux-x64 --sc/p:PublishSingleFile=true,AssemblyName=app
- name: trying to run - run: tar cf app.tar app/
run: dotnet run - uses: actions/upload-artifact@v3
with:
name: app.tar
path: app.tar
test:
steps:
- uses: actions/download-artifact@v3
with:
name: app.tar
- run: tar xf app.tar/app.tar
- run: ./app/app