Skip to content

Commit

Permalink
#27 - zip binaries
Browse files Browse the repository at this point in the history
  • Loading branch information
mikeclayton committed Jul 24, 2023
1 parent de86a7b commit 7e3d612
Showing 1 changed file with 15 additions and 18 deletions.
33 changes: 15 additions & 18 deletions .github/workflows/01_build_test_publish.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ jobs:

defaults:
run:
shell: bash
shell: powershell

env:

Expand All @@ -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 }}
Expand All @@ -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
Expand All @@ -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
#- name: upload jb-inspectcode.xml
# uses: actions/upload-artifact@v3
# with:
# name: jb-inspectcode.xml
# path: .build/out/jb-inspectcode.xml

0 comments on commit 7e3d612

Please sign in to comment.