Skip to content

Commit

Permalink
Work on dotnet-desktop.yml
Browse files Browse the repository at this point in the history
- Fix create archive
  • Loading branch information
JoergHoffmannatGitHub committed Jan 4, 2024
1 parent 1ecef54 commit fa73513
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions .github/workflows/dotnet-desktop-delivery.yml
Original file line number Diff line number Diff line change
Expand Up @@ -104,9 +104,7 @@ jobs:

# Archive the package
- name: Create archive
run: Compress-Archive -Path FamilyShow/bin/$env:Configuration/* -DestinationPath FamilyShow/bin/$env:Configuration\${{ github.ref }}
env:
Configuration: Release
run: Compress-Archive -Path FamilyShow/bin/Release/* -DestinationPath FamilyShow/bin/Release/${{ github.ref }}

# Create the release: https://github.com/actions/create-release
- name: Create release
Expand All @@ -124,9 +122,8 @@ jobs:
uses: actions/upload-release-asset@v1
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
Configuration: Release
with:
upload_url: ${{ steps.create_release.outputs.upload_url }} # This pulls from the CREATE RELEASE step above, referencing it's ID to get its outputs object, which include a `upload_url`. See this blog post for more info: https://jasonet.co/posts/new-features-of-github-actions/#passing-data-to-future-steps
asset_path: FamilyShow/bin/$env:Configuration\${{ github.ref }}
asset_path: FamilyShow/bin/Release/${{ github.ref }}
asset_name: Family.Show-${{ github.ref }}
asset_content_type: application/zip

0 comments on commit fa73513

Please sign in to comment.