Skip to content

Commit

Permalink
Enable Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
dapperdandev committed Jul 29, 2024
1 parent fe04f29 commit e121686
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,18 @@ jobs:
dotnet-version: '8.0.x'

- name: Publish
run: dotnet publish Shellf.Application/Shellf.Application.csproj --configuration Release --output ./publish /p:Version=${{ github.event.release.tag_name }}
run: dotnet publish Shellf.Application/Shellf.Application.csproj --configuration Release --output ./publish -r win-x64 /p:Version=${{ github.event.release.tag_name }} /p:EnableWindowsTargeting=true

- name: Create a zip file of the binaries
run: |
mkdir -p release
zip -r release/shellf.${{ github.event.release.tag_name }}.zip ./publish/*
cd publish
zip -r ../release/shellf.${{ github.event.release.tag_name }}.zip ./*
- name: Upload Binaries
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
upload_url: ${{ github.event.release.upload_url }}
asset_path: ./release/shellf.${{ github.event.release.tag_name }}.zip
Expand Down

0 comments on commit e121686

Please sign in to comment.