From 7e3d612af7b234d0242936689088c94ab44fa53e Mon Sep 17 00:00:00 2001 From: Michael Clayton Date: Tue, 25 Jul 2023 00:33:02 +0100 Subject: [PATCH] #27 - zip binaries --- .github/workflows/01_build_test_publish.yaml | 33 +++++++++----------- 1 file changed, 15 insertions(+), 18 deletions(-) diff --git a/.github/workflows/01_build_test_publish.yaml b/.github/workflows/01_build_test_publish.yaml index 2aa72cf..84dcc4b 100644 --- a/.github/workflows/01_build_test_publish.yaml +++ b/.github/workflows/01_build_test_publish.yaml @@ -14,7 +14,7 @@ jobs: defaults: run: - shell: bash + shell: powershell env: @@ -36,9 +36,9 @@ jobs: with: dotnet-version: 7.0.x - - name: dotnet version + - name: dotnet info working-directory: ${{ env.BUILD_PATH }} - run: dotnet --version + run: dotnet --info - name: dotnet restore working-directory: ${{ env.BUILD_PATH }} @@ -54,9 +54,14 @@ jobs: - name: dotnet publish working-directory: ${{ env.BUILD_PATH }} - run: dotnet publish "./FancyMouse/FancyMouse.csproj" --configuration "$CONFIG_NAME" --no-build --output "$PUBLISH_PATH" + run: dotnet publish "./FancyMouse/FancyMouse.csproj" --configuration "$CONFIG_NAME" --no-build --output "$PUBLISH_PATH/net7.0-windows" - - name: upload binaries + - name: zip release + working-directory: ${{ env.BUILD_PATH }} + run: | + "C:\Program Files\7-Zip\7z.exe" FancyMouse-preview-v0.0.1.zip app + + - name: upload release uses: actions/upload-artifact@v3 with: name: app @@ -69,16 +74,8 @@ jobs: dotnet tool install jetbrains.resharper.globaltools dotnet tool run jb inspectcode "./FancyMouse.sln" -output="../.build/out/jb-inspectcode.xml" --no-build - - name: upload jb-inspectcode.xml - uses: actions/upload-artifact@v3 - with: - name: jb-inspectcode.xml - path: .build/out/jb-inspectcode.xml - - - name: zip - working-directory: ${{ env.BUILD_PATH }} - run: | - sudo apt-get update - sudo apt-get install -y zip - echo "version = ${{ github.ref_name }}" - zip -r "$PUBLISH_PATH" FancyMouse-${{ github.ref_name }}.zip \ No newline at end of file + #- name: upload jb-inspectcode.xml + # uses: actions/upload-artifact@v3 + # with: + # name: jb-inspectcode.xml + # path: .build/out/jb-inspectcode.xml