Skip to content

Commit

Permalink
Update release.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
ibigbug authored Jun 3, 2022
1 parent ba43e08 commit 3276c06
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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/')
Expand Down

0 comments on commit 3276c06

Please sign in to comment.