diff --git a/.gitea/workflows/ci.yml b/.gitea/workflows/ci.yml index 6da4738..f624884 100644 --- a/.gitea/workflows/ci.yml +++ b/.gitea/workflows/ci.yml @@ -13,16 +13,16 @@ jobs: - 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 + - run: | + mkdir -p artifacts + tar cf artifacts/app.tar app/ + outputs: + artifact_path: artifacts/app.tar test: runs-on: ubuntu-latest + needs: build steps: - - uses: actions/download-artifact@v3 - with: - name: app.tar + - uses: actions/checkout@v4 + - run: cp "${{ needs.build.outputs.artifact_path }}" ./app.tar - run: tar xf app.tar - run: ./app/app \ No newline at end of file