From e4d902e1b8e2dd59dc90278a3d21b0b7a1042bd9 Mon Sep 17 00:00:00 2001 From: Eugene Fox Date: Fri, 22 Apr 2022 15:50:56 +0300 Subject: [PATCH] Fixed MockMobile CI pipeline (#2) - Fixed crashes on CI/CD pipeline for MockMobile tool - Added artifact drop task --- .github/workflows/mock-mobile.yaml | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/.github/workflows/mock-mobile.yaml b/.github/workflows/mock-mobile.yaml index 4b70d18..3f21e3f 100644 --- a/.github/workflows/mock-mobile.yaml +++ b/.github/workflows/mock-mobile.yaml @@ -20,16 +20,26 @@ jobs: dotnet-version: 6.0.x - name: Restore dependencies + working-directory: "MockMobile" run: dotnet restore - name: Build + working-directory: "MockMobile" run: dotnet build --no-restore - name: Publish + working-directory: "MockMobile" run: dotnet publish -p:PublishSingleFile=true -r win-x64 -c Debug --self-contained true + - name: Publish artifacts + uses: actions/upload-artifact@v3 + with: + name: "MockMobile" + path: "MockMobile/bin/Debug/net6.0/win-x64/publish/" + - name: Create GitHub Release uses: ncipollo/release-action@v1 with: - artifacts: "${GITHUB_REPOSITORY}/bin/Debug/net6.0/win-x64/publish/MockMobile.exe,${GITHUB_REPOSITORY}/bin/Debug/net6.0/win-x64/publish/MockMobile.pdb" + tag: ${{ github.run_id }}-${{ github.run_number }} + artifacts: "MockMobile/bin/Debug/net6.0/win-x64/publish/MockMobile.exe,MockMobile/bin/Debug/net6.0/win-x64/publish/MockMobile.pdb" token: ${{ secrets.GH_TOKEN }} \ No newline at end of file