From 015d210781c80e83897d4fd2465f27639b2596da Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Joakim=20H=C3=B6glund?= Date: Sun, 17 May 2020 22:39:18 +0200 Subject: [PATCH] Update dotnetcore.yml added publish step --- .github/workflows/dotnetcore.yml | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/.github/workflows/dotnetcore.yml b/.github/workflows/dotnetcore.yml index 85ff290..64752b5 100644 --- a/.github/workflows/dotnetcore.yml +++ b/.github/workflows/dotnetcore.yml @@ -19,13 +19,15 @@ jobs: - name: Install dependencies run: dotnet restore - name: Build - run: dotnet build --configuration Release --no-restore -o ./artifacts -r linux-arm + run: dotnet build --configuration Release --no-restore + - name: Test + run: dotnet test --no-restore --verbosity normal + - name: Publish + run: dotnet publish --configuration Release --no-restore --output ./publish --self-contained true --runtime linux-arm -p:PublishTrimmed=true - name: Zip artifacts uses: montudor/action-zip@v0.1.0 with: - args: zip -qq -r ./release.zip ./artifacts - - name: Test - run: dotnet test --no-restore --verbosity normal + args: zip -qq -r ./release.zip ./publish - name: Create release id: create_release uses: actions/create-release@v1