From 3276c06c54c67eeeb01b86cb7e2e9a5cc0a063d0 Mon Sep 17 00:00:00 2001 From: Yuwei Ba Date: Fri, 3 Jun 2022 18:53:51 +1000 Subject: [PATCH] Update release.yml --- .github/workflows/release.yml | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 27e757c..6f44775 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -9,23 +9,23 @@ name: Publish Daemon jobs: publish: name: Upload Release Asset - runs-on: ubuntu-latest + runs-on: windows-latest steps: - name: Setup .NET Core SDK uses: actions/setup-dotnet@v2 with: dotnet-version: '6.0.x' include-prerelease: true + - name: Checkout code uses: actions/checkout@v3 + - name: Build project # This would actually build your project, using zip for an example artifact run: | dotnet publish --configuration Release --runtime win10-x64 --self-contained --output Release/win10-x64 --version-suffix ${{ github.run_number }} SoftU2FDaemon/SoftU2FDaemon.csproj - - name: Install zip - uses: montudor/action-zip@v1 - - name: Zip output - run: zip -qq -r SoftU2FDaemon-SCD-win10-x64-${{ github.run_number }}.zip * - working-directory: Release/win10-x64 + Compress-Archive -Path Release/win10-x64\* -DestinationPath SoftU2FDaemon-SCD-win10-x64-${{ github.run_number }}.zip + + - name: Upload Release uses: softprops/action-gh-release@v1 if: startsWith(github.ref, 'refs/tags/')